摘要:
//where T : class , new() :说明泛型T是一个类,并且能在方法中实例化这个类。public static List<T> ToList<T>(this DataTable dt) where T : class, new(){List<T> list;T model;List<PropertyInfo> infos;object tempValue; list = new List<T>(); infos = new List<PropertyInfo>(); Array.ForEach<Pr 阅读全文
浙公网安备 33010602011771号