public class Person
{
//1.数组
string[] Names = { "aaa", "bbb", "ccc" };
//数组长度
public int Count
{
get { return Names.Length; }
}
//索引器返回数组
public string this[int index]
{
get { return Names[index]; }
set { Names[index] = value; }
}
}