Jurassic.Library.HiddenClassSchema.GetPropertyIndexAndAttributes C# (CSharp) 메소드

GetPropertyIndexAndAttributes() 공개 메소드

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).
리턴 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;
        }