Exemple #1
0
    static bool DictionaryA2_DictionaryA26(JSVCall vc, int argc)
    {
        int _this = JSApi.getObject((int)JSApi.GetType.Arg);

        JSApi.attachFinalizerObject(_this);
        --argc;

        ConstructorInfo constructor = JSDataExchangeMgr.makeGenericConstructor(typeof(System.Collections.Generic.Dictionary <,>), constructorID5);

        if (constructor == null)
        {
            return(true);
        }

        int len = argc - 2;

        if (len == 2)
        {
            System.Int32 arg0 = (System.Int32)JSApi.getInt32((int)JSApi.GetType.Arg);
            object       arg1 = (object)JSMgr.datax.getObject((int)JSApi.GetType.Arg);
            JSMgr.addJSCSRel(_this, constructor.Invoke(null, new object[] { arg0, arg1 }));
        }

        return(true);
    }
    static bool KeyValuePairA2_KeyValuePairA22(JSVCall vc, int argc)
    {
        int _this = JSApi.getObject((int)JSApi.GetType.Arg);

        JSApi.attachFinalizerObject(_this);
        --argc;

        ConstructorInfo constructor = JSDataExchangeMgr.makeGenericConstructor(typeof(System.Collections.Generic.KeyValuePair <,>), constructorID1);

        if (constructor == null)
        {
            return(true);
        }

        int len = argc - 2;

        if (len == 2)
        {
            object arg0 = (object)JSMgr.datax.getWhatever((int)JSApi.GetType.Arg);
            object arg1 = (object)JSMgr.datax.getWhatever((int)JSApi.GetType.Arg);
            JSMgr.addJSCSRel(_this, constructor.Invoke(null, new object[] { arg0, arg1 }));
        }

        return(true);
    }
    static bool HashSetA1_HashSetA11(JSVCall vc, int argc)
    {
        int _this = JSApi.getObject((int)JSApi.GetType.Arg);

        JSApi.attachFinalizerObject(_this);
        --argc;

        ConstructorInfo constructor = JSDataExchangeMgr.makeGenericConstructor(typeof(System.Collections.Generic.HashSet <>), constructorID0);

        if (constructor == null)
        {
            return(true);
        }

        int len = argc - 1;

        if (len == 0)
        {
            JSMgr.addJSCSRel(_this, constructor.Invoke(null, new object[] {}));
        }

        return(true);
    }
    static bool ValueCollection_ValueCollection1(JSVCall vc, int argc)
    {
        int _this = JSApi.getObject((int)JSApi.GetType.Arg);

        JSApi.attachFinalizerObject(_this);
        --argc;

        ConstructorInfo constructor = JSDataExchangeMgr.makeGenericConstructor(typeof(System.Collections.Generic.Dictionary <,> .ValueCollection), constructorID0);

        if (constructor == null)
        {
            return(true);
        }

        int len = argc - 2;

        if (len == 1)
        {
            object arg0 = (object)JSMgr.datax.getObject((int)JSApi.GetType.Arg);
            JSMgr.addJSCSRel(_this, constructor.Invoke(null, new object[] { arg0 }));
        }

        return(true);
    }