For a heterogeneous collection of objects, use the List<Object> (in C#) or List(Of Object) (in Visual Basic) type. For a homogeneous collection of objects, use the List<T> class. See Performance Considerations in the List<T> reference topic for a discussion of the relative performance of...
arrays are homogeneous, in other words you can store only one type of element. Secondly, when using arrays you must specifically allocate a certain number of elements. Often developers want something more flexible, especially for uncertainty in the size of the collection. The ...
2. It can hold only homogeneous objects, 3. We have to reserve memory as no dynamic expansion allowed. Help us improve. Please let us know the company, where you were asked this question: LikeDiscussCorrect / Improvearrays arraylist arrays vs arraylistAsked in 3 Companies ...
For a heterogeneous collection of objects, use the List<Object> (in C#) or List(Of Object) (in Visual Basic) type. For a homogeneous collection of objects, use the List<T> class. See Performance Considerations in the List<T> reference topic for a discussion of the relative performance of...
For a heterogeneous collection of objects, use the List<Object> (in C#) or List(Of Object) (in Visual Basic) type. For a homogeneous collection of objects, use the List<T> class. See Performance Considerations in the List<T> reference topic for a discussion of the relative performance of...
For a heterogeneous collection of objects, use the List<Object> (in C#) or List(Of Object) (in Visual Basic) type. For a homogeneous collection of objects, use the List<T> class. See Performance Considerations in the List<T> reference topic for a discussion of the relative performance of...
For a heterogeneous collection of objects, use theList<Object>(in C#) orList(Of Object)(in Visual Basic) type. For a homogeneous collection of objects, use theList<T>class. SeePerformance Considerationsin theList<T>reference topic for a discussion of the relative performance of these classes....
For a heterogeneous collection of objects, use the List<Object> (in C#) or List(Of Object) (in Visual Basic) type. For a homogeneous collection of objects, use the List<T> class. See Performance Considerations in the List<T> reference topic for a discussion of the relative performance of...
For a heterogeneous collection of objects, use the List<Object> (in C#) or List(Of Object) (in Visual Basic) type. For a homogeneous collection of objects, use the List<T> class. See Performance Considerations in the List<T> reference topic for a discussion of the relative performance of...
For a heterogeneous collection of objects, use the List<Object> (in C#) or List(Of Object) (in Visual Basic) type. For a homogeneous collection of objects, use the List<T> class. See Performance Considerations in the List<T> reference topic for a discussion of the relative performance of...