public static byte[] End(IAsyncResult result)
        {
            ReadDataAsyncResultClient thisPtr = AsyncResult.End <ReadDataAsyncResultClient>(result);

            return(thisPtr.data);
        }
            public static IDuplexSessionChannel End(IAsyncResult result)
            {
                AcceptChannelAsyncResult thisPtr = AsyncResult.End <AcceptChannelAsyncResult>(result);

                return(thisPtr.channel);
            }
 public static void End(IAsyncResult result)
 {
     AsyncResult.End <OpenAsyncResult>(result);
 }
 public static void End(IAsyncResult result)
 {
     AsyncResult.End <CompletedAsyncResult>(result);
 }