static int _m_WithRepresentation(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); MongoDB.Bson.Serialization.Serializers.DateTimeOffsetSerializer gen_to_be_invoked = (MongoDB.Bson.Serialization.Serializers.DateTimeOffsetSerializer)translator.FastGetCSObj(L, 1); { MongoDB.Bson.BsonType _representation; translator.Get(L, 2, out _representation); MongoDB.Bson.Serialization.Serializers.DateTimeOffsetSerializer gen_ret = gen_to_be_invoked.WithRepresentation(_representation); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }