T
Tony Johansson
Hello!
I have this simple linq query
var test = from o in answer
group o by o.Value into grp
select new { count = grp.Count() };
I want to put the test into an array something like
string[] myArray = test.ToArray();
or into a List
If I try this string[] myArray = test.ToArray();
I get the following compile error
Cannot implicitly convert type 'AnonymousType#1[]' to string[]'
How to I do to store my test result into a variable of type string[] or
List?
//Tony
I have this simple linq query
var test = from o in answer
group o by o.Value into grp
select new { count = grp.Count() };
I want to put the test into an array something like
string[] myArray = test.ToArray();
or into a List
If I try this string[] myArray = test.ToArray();
I get the following compile error
Cannot implicitly convert type 'AnonymousType#1[]' to string[]'
How to I do to store my test result into a variable of type string[] or
List?
//Tony