Created
October 31, 2009 16:24
-
-
Save jfromaniello/223138 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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