xamarin/monotouch-samples — pull request #15 by topgenorth (2012-06-29 20:01:38+00:00)
Title: Possible fix for Reachability.InternetConnectionStatus() always returns NetworkStatus.ReachableViaWiFiNetwork

It seems that Reachability.InternetConnectionStatus() always returns NetworkStatus.ReachableViaWiFiNetwork even when the WiFi is turned off. Basically this method will return NetworkStatus.ReachableViaWiFiNetwork by default, i.e. it seems to assume that the WiFi is always on unless something happens to say WiFi isn't.

Added a check, and if the NetworkAvailabilityFlags == 0 then return NetworkStatus.NotReachable.

(also fixed a typo in a method name while I was at it)