摘要:
昨天有写过一个单例模式的练习。《单例模式(C#)》 写得较为复杂,今天再使用另外的方法来实现: class Au { private static readonly Au instance = new Au(); public static Au Instance { get { return in 阅读全文
posted @ 2017-12-12 12:00
Insus.NET
阅读(593)
评论(1)
推荐(1)
摘要:
在C#中,我们对集合的数据,可以创建一个索引器的方法来访问集合。如: class AS { public string[] Autos = { "德系","欧系","美系","日系","韩系"}; public string this[int index] { get { return Autos[ 阅读全文
posted @ 2017-12-12 10:48
Insus.NET
阅读(427)
评论(1)
推荐(1)

浙公网安备 33010602011771号