/// <summary> /// Returns the properties for the given color code /// </summary> /// <param name="colorCode">The requested color code</param> /// <returns></returns> public static ColorCodeProperty GetColorCodeProperty(ColorCode colorCode) { MemberInfo[] memberInfo = colorCode.GetType().GetMember(colorCode.ToString()); ColorCodeProperty attributes = (ColorCodeProperty)memberInfo[0].GetCustomAttribute(typeof(ColorCodeProperty), false); return(attributes); }