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