gethostentry

Mono says 'System.Net.Dns.GetHostEntry(string)' is inaccessible due to its protection level

I'm taking a class right now where some of the examples are in C#. Since my laptop runs Linux, I'm using Mono 2.6.7 on Ubuntu. I'm trying to compile the following code: using System.Net.Sockets; using System.Net; using System; /// <summary> /// Example program showing simple TCP socket connections in C#.NET. /// Rather than reading an...