public IObjectDescriptor CreateObjectDescriptor(IWriteableSnapshotStructure targetStructure, ObjectValue createdObject, TypeValue type, MemoryIndex memoryIndex) { CopyObjectDescriptor descriptor = new CopyObjectDescriptor(); descriptor.SetObjectValue(createdObject); descriptor.SetType(type); descriptor.SetUnknownIndex(memoryIndex); return(descriptor); }
/// <summary> /// Initializes a new instance of the <see cref="CopyObjectDescriptor"/> class. /// New instance contains copy of given object. /// </summary> /// <param name="objectDescriptor">The object descriptor.</param> public CopyObjectDescriptor(CopyObjectDescriptor objectDescriptor) : base(objectDescriptor) { this.type = objectDescriptor.type; this.objectValue = objectDescriptor.objectValue; }