/// <summary> /// Common magic parser helper function. /// </summary> /// <typeparam name="T"></typeparam> /// <param name="list"></param> /// <param name="myType"></param> /// <returns></returns> private List <T> Convert <T>(List <ManagementBaseObject> list, clsMyType myType = null) { if (myType == null) { var t = typeof(T); myType = Reflection.Instance.TryGetMyType(t.FullName, t); } //var myType = Reflection.Instance.TryGetMyType(t.FullName, t); var result = new List <T>(); MyConvert.Convert(list, myType, result); return(result); }