Please help me get started with List()!!

Hello, so a unity user told me that i should put up this question, becuase it would help me out greatly with my game and jump start me learning about List(). So anything to do with List(), explained examples, links/videos, would be great!w Thanks in advance

The C# List < T > class represents a strongly typed list of objects that can be accessed by index and it supports storing values of a specific type without casting to or from object.

C# List examples with source code

Note : In C# List is depend by array so the theoretical limit of size would be the limit of the array’s capacity. Appending elements is efficient because we are using the free slots at the end, but inserting elements can be slow because all elements in the List after the insertion point have to be shifted to make a free slot. In case of searching, it is is efficient if the BinarySearch method is used on a list that has been sorted, if you use any other search algoritham is inefficient because each item must be individually checked.

Walsh

Javascript example

var tr:List.<Transform> = new List.<Transform>();

function Start()
{
    tr.Add(GameObject.Find("Arm").transform);
    tr.Add(GameObject.Find("Foot").transform);

    for(t in tr)Debug.Log(t.name);

    //Log to Console: [ "Arm" , "Foot" ]
}

C# Example

public List<Transform> tr = new List<Transform>();

void Start()
{
    tr.Add(GameObject.Find("Arm").transform);
    tr.Add(GameObject.Find("Foot").transform);

    for(t in tr)Debug.Log(t.name);

    //Log to Console: [ "Arm" , "Foot" ]
}