public static string GetHueType(this Type type) { HueType ht = type.GetCustomAttribute <HueType>(); return(ht?.HueObjectType); }
public static string GetHueType(this object obj) { HueType ht = obj.GetType().GetCustomAttribute <HueType>(); return(ht?.HueObjectType); }