예제 #1
0
        static int _m_Create(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                System.Net.EndPoint gen_to_be_invoked = (System.Net.EndPoint)translator.FastGetCSObj(L, 1);



                {
                    System.Net.SocketAddress _socketAddress = (System.Net.SocketAddress)translator.GetObject(L, 2, typeof(System.Net.SocketAddress));

                    System.Net.EndPoint gen_ret = gen_to_be_invoked.Create(
                        _socketAddress);
                    translator.Push(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }