using System;
using System.Collections.Generic;
public class Program
{
public static void Main(string[] args)
TestClass a = new TestClass()
// What is the name for this feature??
List =
0,
10,
20,
30
}
};
Console.WriteLine(a.List.Count);
public class TestClass
private List<int> _list = new List<int>();
public List<int> List { get { return _list; } }