.索引器的索引值不受限為整數
.索引器允許重載
.索引器不是一個變量
/*
* 由 SharpDevelop 創建。
* 用戶: huy
* 日期: 2010-2-28
* 時間: 0:20
*/

using System;
using System.Threading;

public class Test
{
private string name;
private int age;
public string Name
{
get{return name;}
set{name = value;}
}
public int Age
{
get{return age;}
set{age = value;}
}
public static void Main()
{
Test test = new Test();
test.Name = "huyvanpull";
test.Age = 25;
Console.WriteLine(test.Name + "; " + test.Age);
Thread.Sleep(5000);
}
}


.索引器允許重載
.索引器不是一個變量






































