Jurassic.Library.MapInstance.GetDeclarativeProperties C# (CSharp) Méthode

GetDeclarativeProperties() private static méthode

private static GetDeclarativeProperties ( ScriptEngine engine ) : List
engine ScriptEngine
Résultat List
        private static List<PropertyNameAndValue> GetDeclarativeProperties(ScriptEngine engine)
        {
            return new List<PropertyNameAndValue>(13)
            {
                new PropertyNameAndValue("size", new PropertyDescriptor(new ClrStubFunction(engine.FunctionInstancePrototype, "get size", 0, __GETTER__Size), null, PropertyAttributes.Configurable)),
                new PropertyNameAndValue("clear", new ClrStubFunction(engine.FunctionInstancePrototype, "clear", 0, __STUB__Clear), PropertyAttributes.NonEnumerable),
                new PropertyNameAndValue("delete", new ClrStubFunction(engine.FunctionInstancePrototype, "delete", 1, __STUB__Delete), PropertyAttributes.NonEnumerable),
                new PropertyNameAndValue("entries", new ClrStubFunction(engine.FunctionInstancePrototype, "entries", 0, __STUB__Entries), PropertyAttributes.NonEnumerable),
                new PropertyNameAndValue("forEach", new ClrStubFunction(engine.FunctionInstancePrototype, "forEach", 1, __STUB__ForEach), PropertyAttributes.NonEnumerable),
                new PropertyNameAndValue("get", new ClrStubFunction(engine.FunctionInstancePrototype, "get", 1, __STUB__Get), PropertyAttributes.NonEnumerable),
                new PropertyNameAndValue("has", new ClrStubFunction(engine.FunctionInstancePrototype, "has", 1, __STUB__Has), PropertyAttributes.NonEnumerable),
                new PropertyNameAndValue("keys", new ClrStubFunction(engine.FunctionInstancePrototype, "keys", 0, __STUB__Keys), PropertyAttributes.NonEnumerable),
                new PropertyNameAndValue("set", new ClrStubFunction(engine.FunctionInstancePrototype, "set", 2, __STUB__Set), PropertyAttributes.NonEnumerable),
                new PropertyNameAndValue("values", new ClrStubFunction(engine.FunctionInstancePrototype, "values", 0, __STUB__Values), PropertyAttributes.NonEnumerable),
            };
        }