示例#1
0
        public IArrayDescriptor CreateArrayDescriptor(IWriteableSnapshotStructure targetStructure, AssociativeArray createdArray, MemoryIndex memoryIndex)
        {
            CopyArrayDescriptor descriptor = new CopyArrayDescriptor();

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