public string LabelForTypeConvention(System.Type type) { if (type.AttributeExists <LabelAttribute>()) { return(type.GetAttribute <LabelAttribute>().Label); } return(type.Name.ToSeparatedWords()); }