open udp socket c#

C#
Socket s = new Socket(AddressFamily.InterNetwork,   
   SocketType.Dgram, ProtocolType.Udp);
Source

Also in C#: