Skip to content

Instantly share code, notes, and snippets.

@dodikk
Created January 26, 2015 10:43
Show Gist options
  • Save dodikk/d15b8b0214841069e7d6 to your computer and use it in GitHub Desktop.
Save dodikk/d15b8b0214841069e7d6 to your computer and use it in GitHub Desktop.
On Generic Parameters Naming. Which one is better?
public interface IRestApiCallTasks<TRequest, THttpResult, TResult>
{
Task<string> BuildRequestUrlForRequestAsync( TRequest request );
Task<THttpResult> SendRequestForUrlAsync( string requestUrl );
Task<TResult> ParseResponseDataAsync(THttpResult httpData);
}
public interface IRestApiCallTasks<A, B, C>
{
Task<string> BuildRequestUrlForRequestAsync( A request );
Task<B> SendRequestForUrlAsync( string requestUrl );
Task<C> ParseResponseDataAsync(B httpData);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment