About 2,180,000 results
Open links in new tab
  1. c# - What is the difference between an Array, ArrayList and a List ...

    Closed 10 years ago. I am wondering what the exact difference is between a Array, ArrayList and a List (as they all have similar concepts) and where you would use one over the other. …

  2. .net - ArrayList vs List<> in C# - Stack Overflow

    Feb 22, 2010 · What is the difference between ArrayList and List<> in C#? Is it only that List<> has a type while ArrayList doesn't?

  3. c# - ¿Cúal es la diferencia entre List y ArrayList en .NET? - Stack ...

    Hace poco respondi la pregunta de ¿Cómo agregar elementos a un array en C#? y mientas proponia la solución alternativa que era usar la clase List, me recorde que tambien hay una …

  4. Multi-dimensional arraylist or list in C#? - Stack Overflow

    Jul 10, 2018 · string[,] results = new string[20, 2]; But I would like to be able to use some of the features in a list or arraylist like being able to add and delete elements.

  5. When to use ArrayList over array[] in c#? - Stack Overflow

    Jan 5, 2009 · I often use an ArrayList instead of a 'normal' array[]. I feel as if I am cheating (or being lazy) when I use an ArrayList, when is it okay to use an ArrayList over an array?

  6. What is difference between array and ArrayList? - Stack Overflow

    May 19, 2014 · Difference between Array and ArrayList are following: Implementation of array is simple fixed sized array but Implementation of ArrayList is dynamic sized array. Array can …

  7. c# - Specifying the type of ArrayList's elements - Stack Overflow

    Sep 27, 2008 · Specifying the type of ArrayList's elements Asked 17 years, 2 months ago Modified 17 years, 2 months ago Viewed 6k times

  8. c# - Initializing ArrayList with constant literal - Stack Overflow

    Nov 12, 2009 · The C# 3 collection initializer is the solution for me because: 1. it compiles on my (special) version of .net 2. does not create a new object. (memory is an issue in this case)

  9. c# - How to sort ArrayList (int) - Stack Overflow

    Oct 28, 2013 · How can I sort the Arraylist in ascending and descending orders. Example.

  10. How do I convert an Array to a List<object> in C#?

    Feb 7, 2011 · If the type of the array elements is a reference type, you can leave out the .Cast<object>() since C#4 added interface co-variance i.e. an IEnumerable<SomeClass> can …