public static String Name(this TargetPlatform type) { return(((DescriptionAttribute)type.GetType().GetField(type.ToString()) .GetCustomAttributes(typeof(DesignerAttribute), false)[0]).Description); }