Skip to content

Instantly share code, notes, and snippets.

@metametaclass
Created October 14, 2012 17:34
Show Gist options
  • Save metametaclass/3889274 to your computer and use it in GitHub Desktop.
Save metametaclass/3889274 to your computer and use it in GitHub Desktop.
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