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