I do not know if this is even possible, but I am using a LINQ query and storing my object results in an implict variable or var like this:
var List= from Person in GlobalVariables.Person List where Person.TeamID == CurrTeam select Person;
What I am asking for is there any way to make an array of vars? (Meaning each row will have another array of objects stored in it)
When I try it it does not recognize var as a valid type. Any way on how to do this or an alternative?
varis not a type. It is a way to not say what the type it. This is known as implicit typing – the compiler can infer what the actual type is.C# is still a strongly typed language.
You can have an array of array (jagged array) in C#, if that’s what you need.