Created
October 14, 2012 17:34
-
-
Save metametaclass/3889274 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 static Type GetIEnumerableOfTType<T>(IEnumerable<T> param) { | |
| return typeof(T); | |
| } | |
| public Type GetAnonymousType() { | |
| var data = from user in db.Users | |
| where user.ID == 1 | |
| select new { ID=user.ID, UserName = user.Name}; | |
| return GetIEnumerableOfTType(data); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment