The type or namespace name 'Ping' Could not be found.
I am trying the following example from one of Joes Youtube demos and it cannot resolve the namespace.
----
from site in new[]
{
"www.Microsoft.com",
"www.linqpad.net",
"www.Doesnotexistatall.co.uk"
}
let p = new Ping().Send(site)
select new
{
site,
Result = p.Status,
Time = p.RoundtripTime
}
------------
I have added
System.Net
System.Net.NetworkInformation
But I cannot get it to work.
Any Ideas?
I am using LinqPad4
----
from site in new[]
{
"www.Microsoft.com",
"www.linqpad.net",
"www.Doesnotexistatall.co.uk"
}
let p = new Ping().Send(site)
select new
{
site,
Result = p.Status,
Time = p.RoundtripTime
}
------------
I have added
System.Net
System.Net.NetworkInformation
But I cannot get it to work.
Any Ideas?
I am using LinqPad4
Comments