private IEnumerable <object> GetGroupValues(PropertyDescriptor masterGroup, GroupEnables attribute) { // Ensure init of Typed values - currently these are cached // back into the GroupEnabledAttribute if (attribute.Values == null) { var converter = masterGroup.Converter; if (converter != null && converter.CanConvertFrom(typeof(string))) { attribute.Values = attribute.StringValues.Select(converter.ConvertFromString).ToArray(); } else { attribute.Values = attribute.StringValues; } } return(attribute.Values); }
public GroupEnabledAttribute(GroupEnables[] enables) { GroupEnables = enables; }