上一页 1 ··· 50 51 52 53 54 55 56 57 58 ··· 63 下一页
摘要: class Test { public static void Main() { Console.Write(StudentInfo.Name);//输出ligang Console.Read(); } } //静态方法一般使用静态成员实例方法可以使用静态方法,而静态方法不能使用实例方法 static class StudentInfo { private static string name = "ganquanfu"; public static string Name { get { return StudentInfo.name; } set { StudentIn 阅读全文
posted @ 2013-04-09 18:27 Predator 阅读(116) 评论(0) 推荐(0) 编辑
摘要: public static void Main(string[]args) { Person student = new Person(); student.Name = "甘全福"; student.Age = 23; Person teacher = student.Clone(); Console.WriteLine("姓名:"+teacher.Name + "年龄:" + teacher.Age); Console.WriteLine("克隆成功!"); Console.Read(); } class Pe 阅读全文
posted @ 2013-04-09 18:26 Predator 阅读(122) 评论(0) 推荐(0) 编辑
摘要: class Test { public static void Main() { Console.Write(StudentInfo.Name);//输出ligang Console.Read(); } } //静态方法一般使用静态成员实例方法可以使用静态方法,而静态方法不能使用实例方法 static class StudentInfo { private static string name = "ganquanfu"; public static string Name { get { return StudentInfo.name; } set { StudentIn 阅读全文
posted @ 2013-04-09 18:25 Predator 阅读(141) 评论(0) 推荐(0) 编辑
摘要: //ListView 的设计this.ListView1 = new System.Windows.Forms.ListView(); this.ListView1.BackColor = System.Drawing.SystemColors.Control; this.ListView1.Dock = System.Windows.Forms.DockStyle.Top; this.ListView1.Location = new System.Drawing.Point(0, 0); this.ListView1.Name = "ListView1"; this.Li 阅读全文
posted @ 2013-04-08 18:51 Predator 阅读(228) 评论(0) 推荐(0) 编辑
上一页 1 ··· 50 51 52 53 54 55 56 57 58 ··· 63 下一页