标签:
1 code
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace ConsoleApplication10 8 { 9 class Program 10 { 11 static void Main(string[] args) 12 { 13 Type tp = typeof(Test); 14 Console.WriteLine(tp); 15 Console.ReadKey(); 16 } 17 } 18 class Test:Object 19 { 20 private int _age; 21 private string _name; 22 23 public int Age 24 { 25 get 26 { 27 return _age; 28 } 29 30 set 31 { 32 _age = value; 33 } 34 } 35 36 public string Name 37 { 38 get 39 { 40 return _name; 41 } 42 43 set 44 { 45 _name = value; 46 } 47 } 48 //一个函数 49 public void AMethod() 50 { 51 52 } 53 } 54 }
2 show
标签:
原文地址:http://www.cnblogs.com/jinlingzi/p/5982825.html