public static void SendToCallback(IAsyncResult ar) { UdpSender self = (UdpSender)(ar.AsyncState); self.sock.EndSendTo(ar); }