public int GetCurrentAgentInboundContact(int AgentLogin, out TWSAgentContactInbound InboundContact) { object[] results = this.Invoke("GetCurrentAgentInboundContact", new object[] { AgentLogin}); InboundContact = ((TWSAgentContactInbound)(results[1])); return ((int)(results[0])); }