obj = luacom.CreateObject("MyObject.Test") if luacom.isMember(obj, "Test") then result = obj:Test() end