Return false instead of throwing a not implemented condition
authorNeale Ferguson <neale@sinenomine.net>
Fri, 20 Jul 2012 14:20:10 +0000 (10:20 -0400)
committerNeale Ferguson <neale@sinenomine.net>
Fri, 20 Jul 2012 14:20:10 +0000 (10:20 -0400)
mcs/class/System/System.Net/WebResponse.cs

index 43864f4424fd195b2e622001363729cbf7f62844..a4140ebee5865d4afde18aa5e46fa3f1ca6448c2 100644 (file)
@@ -72,7 +72,9 @@ namespace System.Net
                public virtual bool IsFromCache\r
                {\r
                        get {\r
-                               throw GetMustImplement ();\r
+                               return false;\r
+                               // Better to return false than to kill the application\r
+                               // throw GetMustImplement ();\r
                        }\r
                }\r
                \r