Skip to content

Instantly share code, notes, and snippets.

@anaisbetts
Created August 27, 2012 09:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anaisbetts/3486981 to your computer and use it in GitHub Desktop.
Save anaisbetts/3486981 to your computer and use it in GitHub Desktop.
public static IDisposable Bind<TViewModel, TView, TProp>(
this TView view,
Expression<Func<TViewModel, TProp>> vmProperty,
Expression<Func<TView, TProp>> viewProperty)
where TViewModel : class
where TView : IViewFor<TViewModel>
{
// C# isn't smart enough to infer the type parameters
// by looking at the TView to determine TViewModel
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment