public override Descriptor Clone() { LinkedDescriptor linkedDescriptor = new LinkedDescriptor(this.Owner, this.Name, (Descriptor)this, this.targetObject); linkedDescriptor.Writable = this.Writable; linkedDescriptor.Configurable = this.Configurable; linkedDescriptor.Enumerable = this.Enumerable; return((Descriptor)linkedDescriptor); }
public LinkedDescriptor( JsDictionaryObject owner, string name, Descriptor source, JsDictionaryObject that) : base(owner, name) { if (source.isReference) { LinkedDescriptor linkedDescriptor = source as LinkedDescriptor; this.d = linkedDescriptor.d; this.m_that = linkedDescriptor.m_that; } else { this.d = source; } this.Enumerable = true; this.Writable = true; this.Configurable = true; this.m_that = that; }