示例#1
0
        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);
        }
示例#2
0
 /// <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;
 }