public ArchetypePublishedContentSet(ArchetypeModel archetype) { if (archetype == null) { throw new ArgumentNullException("archetype"); } this.ArchetypeModel = archetype; _items = archetype.Fieldsets .Where(x => x.Disabled == false) .Select(x => new ArchetypePublishedContent(x)); }
public ArchetypePublishedContentSet(ArchetypeModel archetype) { if (archetype == null) { throw new ArgumentNullException("archetype"); } this.ArchetypeModel = archetype; var count = archetype.Fieldsets.Count(); _items = archetype.Fieldsets .Where(x => x.IsAvailable()) .Select(x => new ArchetypePublishedContent(x, this)) .ToArray(); }