下面这行应该怎么理解?
public T Execute<t>(RestRequest request) where T : new()
它是下面代码的一部分。
public T Execute<t>(RestRequest request) where T : new()
{
var client = new RestClient();
client.BaseUrl = BaseUrl;
request.RequestFormat = DataFormat.Json;
// Used on every request
request.AddParameter("country", "gb", ParameterType.UrlSegment);
var response = client.Execute<t>(request);
return response.Data;
}
还有这个:
公共类 RssItems:列表{}