Can arraylist store different data types in c#?



Can arraylist store different data types in c#?..

Answer / Arun Singh Rathi

No, ArrayList in C# can only store a single data type. To work with multiple data types, use List<T> instead.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is instantiating a class?

1 Answers  


What are the advantages of interface in c#?

1 Answers  


How do you create partial methods?

1 Answers  


Describe ways of cleaning up objects in c#.

1 Answers  


What is a method signature c#?

1 Answers  


What is the real use of interface in c#?

1 Answers  


What is the property of class?

1 Answers   Wipro,


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?

1 Answers   Siebel Systems,


List down the differences between public, static and void keywords?

1 Answers  


What Is A Multicast Delegate?

1 Answers   Siebel Systems,


What are the collection classes ?

2 Answers   Digital GlobalSoft,


Can scriptable objects have methods?

1 Answers  


Categories