Jurassic.Library.MapInstance.__STUB__Get C# (CSharp) Метод

__STUB__Get() приватный статический Метод

private static __STUB__Get ( ScriptEngine engine, object thisObj, object args ) : object
engine ScriptEngine
thisObj object
args object
Результат object
        private static object __STUB__Get(ScriptEngine engine, object thisObj, object[] args)
        {
            thisObj = TypeConverter.ToObject(engine, thisObj);
            if (!(thisObj is MapInstance))
                throw new JavaScriptException(engine, ErrorType.TypeError, "The method 'get' is not generic.");
            switch (args.Length)
            {
                case 0:
                    return ((MapInstance)thisObj).Get(Undefined.Value);
                default:
                    return ((MapInstance)thisObj).Get(args[0]);
            }
        }