Spaghetti Tom
Sunday, May 17, 2015
In C#, it seems easy enough to do .ToArray on an IEnumerable just like doing .ToArray on a List.
IEnumerable<int> foo = (new List<int>() {1,2,3,4,5}).Where(x => x > 1);
int[] bar = foo.ToArray();
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment