private static void ExtractCollectionField(IMapCategory parent) { foreach (var mainProperty in GetProperties <InfoArrayCategoryAttribute>(parent.OwnerType)) { InfoArrayCategoryAttribute attribute = GetAttribute <InfoArrayCategoryAttribute>(mainProperty); MapCategory mapCategory = new CollectionMapCategory(parent, attribute, mainProperty); parent.AddCategory(mapCategory); } }
public CollectionMapCategory(IMapCategory parent, InfoArrayCategoryAttribute attribute, PropertyInfo propertyInfo) : base(parent, attribute.Name, propertyInfo) { Attribute = attribute; }