Update NetConnect.cs

-Added backwards compatibility VS2010