Can you store multiple data types in System.Array?
Answer Posted / neeraj kumar shrivastwa
If you take an array of object, you can store multiple data
type in an array.
object[] obj = new object[4];
obj[0]=1;
obj[1]="Neeraj";
obj[2]=true;
obj[3]=System.DateTime.Now;
Is This Answer Correct ? | 53 Yes | 5 No |
Post New Answer View All Answers
if a base class has a number of overloaded constructors, and an inheriting class has a number of overloaded constructors; can you enforce a call from an inherited constructor to a specific base constructor?
In a site to turn off cookies for one page which method is followed?
Where’s global assembly cache located on the system?
What do you mean by winforms in c#?
Is friend a constructor?
What is the main usage of keyword “virtual†? How does it work for a method or property?
What is difference between array and arraylist c#?
Is it possible to have a static indexer in c#? Allowed in c#.
How C# 4.0 supports dynamic programming language?
Why delegates are safe in c#?
What is namespace explain with example?
How can we make a thread sleep for infinite period ?
In which order the destructor is called for an inherited class?
What are Uses of CLR
What is anonymous method in c#?