public NetworkingiSessionPeerDiscoveryDiscoveryMode[] Endget_discovery_mode(System.IAsyncResult asyncResult) { object [] results = this.EndInvoke(asyncResult); return ((NetworkingiSessionPeerDiscoveryDiscoveryMode [])(results[0])); }