Exemplo n.º 1
0
 static public int AsReadOnly(IntPtr l)
 {
     try {
         System.Collections.Generic.List <WWWRequest> self = (System.Collections.Generic.List <WWWRequest>)checkSelf(l);
         var ret = self.AsReadOnly();
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
        static int _m_AsReadOnly(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                System.Collections.Generic.List <int> gen_to_be_invoked = (System.Collections.Generic.List <int>)translator.FastGetCSObj(L, 1);



                {
                    var gen_ret = gen_to_be_invoked.AsReadOnly(  );
                    translator.Push(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Exemplo n.º 3
0
        static int _m_AsReadOnly(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            System.Collections.Generic.List <object> __cl_gen_to_be_invoked = (System.Collections.Generic.List <object>)translator.FastGetCSObj(L, 1);


            try {
                {
                    System.Collections.ObjectModel.ReadOnlyCollection <object> __cl_gen_ret = __cl_gen_to_be_invoked.AsReadOnly(  );
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Exemplo n.º 4
0
 public ReadOnlyCollection <T> AsReadOnly()
 {
     return(list.AsReadOnly());
 }