Can you store multiple data types in System.Array?

Answer Posted / tsahi

Yes you can, if you have an object array. since
System.Object is the base class of all other types, an item
in an array of Objects can have a reference to any other
type of object.

Is This Answer Correct ?    23 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we need dependency injection in c#?

463


How do partial classes work in c#?

488


What is before string in c#?

496


What is the delegate in c#?

494


When should you use generics?

515






What is the use of expression tree in c#?

480


What are the types of inheritance in c#?

499


Can enum have methods c#?

491


What is the root element of an xml file?

500


What is the main purpose of xml?

480


What are static and dynamic variables?

649


Give an example of removing an element from the queue?

471


What is a class in unity?

486


Can you see a loop recorder?

499


Why c# is called c sharp?

467