Created
March 27, 2012 12:30
-
-
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.
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 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