public FeatureTypeModel(FeatureType featureType) { FeatureType = featureType; var type = featureType.GetType(); Name = $"{featureType}"; var attribute = type.GetField(Name) .GetCustomAttributes(typeof(DescriptionAttribute), false).FirstOrDefault() as DescriptionAttribute; Summary = attribute.Description; }