摘要:
1 public class ClassIndex 2 { 3 4 public object this[string index] 5 { 6 get 7 { 8 object result = null; 9 foreach (var item in this.GetType().GetProperties()) 10 { 11 if (index == item.Name) 12 { 13 阅读全文
摘要:
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading; 6 using System.Threading.Tasks; 7 8 namespace study01 9 { 10 /* 11 * 用法: 12 Back 阅读全文
摘要:
1 using System; 2 using System.Collections; 3 using System.Collections.Generic; 4 using System.Linq; 5 using System.Reflection; 6 using System.Text; 7 阅读全文