 The compiler will simply generate calls to the Add-method.This works for classes that implement the interface .List list = new List {2, 5, 6, 6};

// Equal to
List list = new List();
list.Add(2);
list.Add(5);
list.Add(6);
list.Add(6);


Members of an instance and static members of a class are accessed using the operator.