Collection:
ArrayList XXX = new ArrayList ();//Define a collection
Xxx.add//Add a program
Xxx. Insert (0, 16);//insert: Insert data than the original XXX "0" above the number of squeezing to XXX "1" on
Xxx. Insertrange (0,shuzu);//Insert an array at the specified location
Xxx. AddRange (Shuzu);//Append a set of elements at the last position
Xxx. Remove (16);//Remove only the first occurrence
Xxx. RemoveAt (3);//Remove the element at the specified index location
Xxx. Sort ();//ascending order
Xxx. Reverse ();//Invert collection
Console.WriteLine (Xxx[0]);//xxx[0] is added in the first number {1} is the second number and so on
Console.WriteLine (XXX. Count);//Returns the number of elements in the collection
Console.WriteLine (XXX. IndexOf (14));//Returns the index of the first occurrence only
Console.WriteLine (XXX. LastIndexOf (14));//Returns the index of the last occurrence
C # Collection