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



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

Answer / Sandhi Goel

Yes, we can store different data types in an ArrayList (or List<T>) in C#. The generic type parameter T allows the list to hold any data type.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

Why dependency injection is used in c#?

1 Answers  


What is difference between events and delegates?

1 Answers  


if we inherit class in stack so object of stack will store in stack or heap? as class a { int s; public aa(){} } stack mystack:a { } mystack obj; ans: about obj

1 Answers  


What is use of a HashTable in .NET?

1 Answers   Arigo Infotech,


Any .net training centers available near hitech city , hyderabad?

2 Answers  


What is the difference between abstract and abstraction?

1 Answers  


What is dataset and dataadapter in c#?

1 Answers  


What is an indexer in c#?

1 Answers  


What is bit in c#?

1 Answers  


How we can create an array with non-default values?

1 Answers  


What is the use of table aliases?

1 Answers  


Difference between dispose and destructor?

3 Answers   TCS,


Categories