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