示例#1
0
        public void Read(Stream reader)
        {
            ParentPath = reader.ReadString();
            var extensionPointId = StringHelper.GetExtensionPointId(ParentPath);
            var childCount       = reader.ReadInt32();

            _children = new List <ExtensionBuilderRecord>(childCount);
            for (int i = 0; i < childCount; i++)
            {
                var child = ExtensionBuilderRecordHelper.Read(reader, extensionPointId, ParentPath);
                child.Read(reader);
                Children.Add(child);
            }
        }
示例#2
0
        public virtual void Read(Stream reader)
        {
            DoRead(reader);

            var childCount = reader.ReadInt32();

            if (childCount > 0)
            {
                _children = new List <ExtensionBuilderRecord>(childCount);
                for (int i = 0; i < childCount; i++)
                {
                    var child = ExtensionBuilderRecordHelper.Read(reader, Id, Id);
                    child.Read(reader);
                    _children.Add(child);
                }
            }
        }
示例#3
0
        public override void Read(Stream reader)
        {
            DoRead(reader);
            var thisPath = GetPath();

            var childCount = reader.ReadInt32();

            if (childCount > 0)
            {
                _children = new List <ExtensionBuilderRecord>(childCount);

                for (int i = 0; i < childCount; i++)
                {
                    var child = ExtensionBuilderRecordHelper.Read(reader, ExtensionPointId, thisPath);
                    child.Read(reader);
                    _children.Add(child);
                }
            }
        }