コード例 #1
0
        public IArrayDescriptor CreateArrayDescriptor(IWriteableSnapshotStructure targetStructure, AssociativeArray createdArray, MemoryIndex memoryIndex)
        {
            LazyCopyArrayDescriptor descriptor = new LazyCopyArrayDescriptor(targetStructure);

            descriptor.SetArrayValue(createdArray);
            descriptor.SetParentIndex(memoryIndex);
            descriptor.SetUnknownIndex(memoryIndex.CreateUnknownIndex());
            return(descriptor);
        }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the
 /// <see cref="LazyCopyArrayDescriptor" /> class.
 /// New instance contains copy of given object.
 /// </summary>
 /// <param name="associatedStrucutre">The associated strucutre.</param>
 /// <param name="arrayDescriptor">The array descriptor.</param>
 public LazyCopyArrayDescriptor(IWriteableSnapshotStructure associatedStrucutre, LazyCopyArrayDescriptor arrayDescriptor)
     : base(arrayDescriptor)
 {
     this.associatedStrucutre = associatedStrucutre;
     this.parentIndex         = arrayDescriptor.parentIndex;
     this.arrayValue          = arrayDescriptor.arrayValue;
 }