Skip to content

Instantly share code, notes, and snippets.

@i-e-b
Created March 27, 2012 12:30
Show Gist options
  • Save i-e-b/2215472 to your computer and use it in GitHub Desktop.
Save i-e-b/2215472 to your computer and use it in GitHub Desktop.
C# extension to select enumerable as a specific type from a dynamic.
public static IEnumerable<T> SelectAs<T> (this IEnumerable<dynamic> source, Func<dynamic, T> selector){
return source.Select(selector);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment