开通VIP,畅享免费电子书等14项超值服
首页
好书
留言交流
下载APP
联系客服
2013.06.06
class SampleCollection<T>{ private T[] arr = new T[100]; public T this[int i] { get { return arr[i]; } set { arr[i] = value; } }}class Program{ static void Main(string[] args) { SampleCollection<string> stringCollection = new SampleCollection<string>(); stringCollection[0] = "Hello, World"; System.Console.WriteLine(stringCollection[0]); }}
微信登录中...请勿关闭此页面