Archetype.Models.ArchetypePublishedContent.ArchetypePublishedContent C# (CSharp) Метод

ArchetypePublishedContent() публичный Метод

public ArchetypePublishedContent ( ArchetypeFieldsetModel fieldset, ArchetypePublishedContentSet parent = null ) : System
fieldset ArchetypeFieldsetModel
parent ArchetypePublishedContentSet
Результат System
        public ArchetypePublishedContent(ArchetypeFieldsetModel fieldset, ArchetypePublishedContentSet parent = null)
        {
            if (fieldset == null)
                throw new ArgumentNullException("fieldset");

            _fieldset = fieldset;
            _parent = parent ?? Enumerable.Empty<IPublishedContent>();

            _properties = fieldset.Properties
                .ToDictionary(
                    x => x.Alias,
                    x => new ArchetypePublishedProperty(x) as IPublishedProperty,
                    StringComparer.InvariantCultureIgnoreCase);
        }