Skip to content

Instantly share code, notes, and snippets.

@jfromaniello
Created October 31, 2009 16:24
Show Gist options
  • Save jfromaniello/223138 to your computer and use it in GitHub Desktop.
Save jfromaniello/223138 to your computer and use it in GitHub Desktop.
public string Do<TCollectionElement>(Expression<Func<T, IEnumerable<TCollectionElement>>> property)
{
return "a";
}
public int Do<TPropertyType>(Expression<Func<T, TPropertyType>> property)
{
return 5;
}
public void SomeMethod()
{
var o = new Test<string>();
int i = o.Do(s => s.Length);
string test = o.Do(s => new List<char>(s));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment