Can you store multiple data types in System.Array?

Answer Posted / srivathsan

i guess you cannot do that in a list too. because an array
list is also type safe.
eg:

List<int> arraylist = new List<int>();

the arraylist can contain only integer items.You cannot
store an item that is not an integer type in the arraylist.

Is This Answer Correct ?    4 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is yield return in c#?

686


What is a bool in c#?

635


Why array is faster than arraylist in c#?

666


Can you inherit multiple abstract classes in c#?

693


What is dll in vb.net?

665


Explain what are three test cases you should go through in unit testing?

697


Is c and c# the same?

667


What exception can an overridden method throw in comparison with the method it is overriding?

619


what is c# command?

696


What is foreach loop in c#?

701


What is lock in c#?

645


What are interfaces in c#?

679


How to parse a date time string?

721


Describe ways of cleaning up objects in c#.

674


Can you have parameters for static constructors?

693