Jurassic.Library.HiddenClassSchema.GetPropertyIndexAndAttributes C# (CSharp) Method

GetPropertyIndexAndAttributes() public method

Gets the zero-based index of the property with the given name and the attributes associated with the property.
public GetPropertyIndexAndAttributes ( object key ) : SchemaProperty
key object The property key (either a string or a Symbol).
return SchemaProperty
        public SchemaProperty GetPropertyIndexAndAttributes(object key)
        {
            if (this.properties == null)
                this.properties = CreatePropertiesDictionary();
            SchemaProperty propertyInfo;
            if (this.properties.TryGetValue(key, out propertyInfo) == false)
                return SchemaProperty.Undefined;
            return propertyInfo;
        }