Jint.Native.JsScope.GetDescriptor C# (CSharp) Method

GetDescriptor() public method

Overriden. Returns a property descriptor.
Tries to resolve proeprty in the following order: 1. OwnProperty for the current scope 2. Any property from the bag (if specified). 3. A property from scopes hierarchy.
public GetDescriptor ( string index ) : Descriptor
index string Property name.
return Descriptor
        public override Descriptor GetDescriptor(string index)
        {
            Descriptor own, d;
            if ((own = base.GetDescriptor(index)) != null && own.Owner == this)
                return own;

            if (bag != null && (d = bag.GetDescriptor(index)) != null)
                return d;

            return own;
        }