Пример #1
0
        public Folder(DvText name, string archetypeNodeId, UidBasedId uid,
                      List <Link> links, Archetyped.Impl.Archetyped archetypeDetails, FeederAudit feederAudit,
                      List <Folder> folders, List <ObjectRef> items)
            : base(name, archetypeNodeId, uid, links, archetypeDetails, feederAudit)
        {
            LocatableList <Folder> locatableList = folders as LocatableList <Folder>;

            // LocatableList can not be constructed without a parent, hence will not have a parent of this object is it is yet to be constructed
            Check.Require(locatableList == null, "folders must not be of type LocatableList with another parent");

            if (folders != null)
            {
                this.folders = RmFactory.List <Folder>(this, folders) as LocatableList <Folder>;
            }
            this.items = items;

            SetAttributeDictionary();
        }
Пример #2
0
        public Folder(DvText name, string archetypeNodeId, UidBasedId uid,
                      List <Link> links,
                      Archetyped.Impl.Archetyped archetypeDetails, FeederAudit feederAudit,
                      System.Collections.Generic.IEnumerable <Folder> folders,
                      System.Collections.Generic.IEnumerable <ObjectRef> items)
            : base(name, archetypeNodeId, uid, links, archetypeDetails, feederAudit)
        {
            if (folders != null)
            {
                this.folders = RmFactory.List <Folder>(this, folders) as LocatableList <Folder>;
            }
            if (items != null)
            {
                this.items = new List <ObjectRef>(items);
            }

            SetAttributeDictionary();
        }