Mittwoch, 29. August 2018

C# arraylist vs list

They have different capabilities and store their data in. I saw this reply from Jon on Initialize generic object with unknown type. You'll be able to use the LINQ extension methods directly with .

ArrayList is a non-generic collection class and resides in System. Collection namespace whereas List is a generic class and resides in System. A List`or ArrayList object is a sophisticated version of an array. The ArrayList class and the List`generic class provide some features that are offered in most .

Thus it will store only specific types of objects based on what data . This namespace is added by default when we we creat any. String Vs StringBuilder …… point by pointIn C#. Collections is the Namespace for Arraylist. It automatically added to namespace section in aspx.


In C#, arrays and lists are both objects that can be used to hold variables, but they aren't exactly interchangeable.

Keine Kommentare:

Kommentar veröffentlichen

Hinweis: Nur ein Mitglied dieses Blogs kann Kommentare posten.

Beliebte Posts