One method to read parameters, properties and return types at runtime using C#
问题 With continutation to my earlier thread Using reflection read properties of an object containing array of another object. I am hoping to make this wonderful method from EvgK a generic method that can be used in multiple places in my code base. public static void GetMyProperties(object obj) { List<MyPropertyInfo> oMyProp = new List<MyPropertyInfo>(); foreach (PropertyInfo pinfo in obj.GetType().GetProperties()) { if (!Helper.IsCustomType(pinfo.PropertyType)) { //add properties - name, value,