how to check for network connection c# code example Example: c# check internet connection easy System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable()