unity – List or Array how to set it values?


Could any one reminds me how to set the number of elements that list or array will contains from the script instead of using Inspector. Usually, I go to inspector to set the number of elements manually. I need to do it when Start() run script.

public GameObject() Birds;
public List <GameObject> Dogs = new List<GameObject>();

void Start()
{

}