Home > Interview Questions > .Net Framework > Is it possible to store multiple data types in System.Array in C#?

Is it possible to store multiple data types in System.Array in C#?

by Thamil   on 08/10/2015   Category: .Net Framework   |  Level: Intermediate   |  Views: 1117    |  Points: 25     |  Gold 


No, it’s not possible to hold the multiple data types in System.Array in C# and every element of an array will have same data type.


« What is the use sort() method in C# Array?
» What is assemblyInfo.cs file in .net?
Post Question  |  Question Home

Recent Posts

User Responses


  Re :Is it possible to store multiple data types in System.Array in C#?   
Posted by SSK
on 13/04/2016
Points : 5

Yes, Array can hold data of multiple type if it's declared as type of Object. Like object[] objArray=new object[5];
Because all the types derives from object class directly or indirectly.

Submit feedback about this code snippet

Please sign in to post feedback

Latest Posts