I am working on a Java to C# conversion project. In this project, my custom java library uses java.net packages DatagramPacket and DatagramSocket classes.

Are there similar classes in .NET C# with similar functionalities?

I'm pretty sure there are. But why do you need them when you're converting FROM JAVA to C#?

Probably UdpClient (a higher level UDP socket). Or you can use a lower-level Socket with SocketType.Dgram and ProtocolType.Udp.

I don't know about DatagramPacket.

All the System.Net Namespaces can be found here