摘要: class Program { static void Main(string[] args) { IndexClass a = new IndexClass(); a[0] = "张三"; a[1] = "李四"; a[2] = "王五"; Console.WriteLine("a[0]=" + 阅读全文
posted @ 2019-04-14 14:54 夜静春山 阅读(122) 评论(0) 推荐(0)
摘要: using System; namespace Test{ [AttributeUsage(AttributeTargets.Property)] public class StringLengthtAttribute : Attribute { private int _maximumLength 阅读全文
posted @ 2019-04-14 14:16 夜静春山 阅读(110) 评论(0) 推荐(0)