Created
December 17, 2016 17:43
-
-
Save camarin24/adbb98e3e543bdf488a7beae09626a06 to your computer and use it in GitHub Desktop.
Linq extension method (converto to int array)
This file contains 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 class LinqExtension | |
{ | |
public static int[] ConvertToArrayInt<T>(this List<T> data, Func<T,int> lamba) | |
{ | |
return data.Select(lamba).ToArray(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment