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); }
/// <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; }