Skip to content

Instantly share code, notes, and snippets.

@vietnt
Created September 13, 2011 20:15
Show Gist options
  • Save vietnt/1215014 to your computer and use it in GitHub Desktop.
Save vietnt/1215014 to your computer and use it in GitHub Desktop.
c# is so .. verbose
public IPipeline<TResult,TState> Combine<T1,T2,T3,TResult>(
IPipeline<T1,TState> a,
IPipeline<T2,TState> b,
IPipeline<T3,TState> c,
IPipeline<TResult,TState> d)
{
return a.Then(b).Then(c).Then(d);
}
public IPipeline<TResult, TState> Combine<T1, T2, TResult>(
IPipeline<T1, TState> a,
IPipeline<T2, TState> b,
IPipeline<TResult, TState> c)
{
return a.Then(b).Then(c);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment