Can you store different types in an Array in C# ?
Kshitiz Bhargav
Yes Object array
ya by the use of object array like object[] a=new object[10];
Yes
Object array
yes by using object array
The answer is yes! if we create object array. all types in .net inherits directly or indirectly from system.object. we can add any types of object array including complex types like employee class ,student class. Second option is to use ArrayList class which is present in system.collection .namespace.