Show Menu
Cheatography

C# Collections Cheat Sheet (DRAFT) by

Methods assigned to four C# Collection Types

This is a draft cheat sheet. It is a work in progress and is not finished yet.

ArrayList

ArrayList is a non-ge­neric type of collection in C#. It can contain elements of any data types. It is similar to an array, except that it grows automa­tically as you add items in it. Unlike an array, you don't need to specify the size of ArrayList.

Properties and Methods of ArrayList

Properties
Descri­ption
Capacity
Gets or sets the number of elements that the ArrayList can contain.
myArra­yLi­st.C­ap­acity