摘要: 1 /// <summary> 2 /// 判断类型是否为可操作的列表类型 3 /// </summary> 4 /// <param name="type"></param> 5 /// <returns></returns> 6 public static bool IsList(this Ty 阅读全文
posted @ 2021-08-07 15:15 唐宋元明清2188 阅读(1701) 评论(0) 推荐(0) 编辑
摘要: 本文介绍对列表进行创建及赋值的反射操作 我们现在有TestA、TestB类,TestA中有TestB类型列表的属性List,如下: 1 public class TestA 2 { 3 public List<TestB> List { get; set; } 4 } 5 public class 阅读全文
posted @ 2021-08-07 15:15 唐宋元明清2188 阅读(844) 评论(0) 推荐(1) 编辑