/// <summary> /// Extracts the membername /// </summary> public static string ConvertMemberName(MemberInfo info) { WmiMapAttribute memberAttribute = WmiMapAttribute.Get(info); return(memberAttribute != null ? memberAttribute.Name : info.Name); }
/// <summary> /// Extracts the table name /// </summary> public static string ConvertTableName(Type type) { WmiMapAttribute memberAttribute = WmiMapAttribute.Get(type); return(memberAttribute != null ? memberAttribute.Name : type.Name); }