Hej,
assuming I have a code that looks like this:
List<User> userList = GetUserByName (u => u.Name == name);
DoSomethingWithTheUsers (userList.ToArray ());
Now I want to know the type of the objects in the Array in the method DoSomethingWithTheUsers (object[] myObjects)
Simply done by myObjects.First ().GetType () but what is to be done if the array is empty? Is there a possibility to still get the Type?