/// <summary> /// Extracts the attribute from an MemberInfo /// </summary> public static WmiMapAttribute Get(MemberInfo info) { return((WmiMapAttribute)WmiMapAttribute.GetCustomAttribute(info, typeof(WmiMapAttribute))); }
/// <summary> /// Retrieves the attribute from an type /// </summary> public static WmiMapAttribute Get(Type type) { return((WmiMapAttribute)WmiMapAttribute.GetCustomAttribute(type, typeof(WmiMapAttribute))); }