public virtual Uri ResponseUri { \r
get { throw new NotSupportedException (); }\r
} \r
-#if NET_4_0\r
- [MonoTODO ("for portable library support")]\r
+\r
public virtual bool SupportsHeaders {\r
- get { throw new NotImplementedException (); }\r
+ get {\r
+ // The managed stack always returns this as true, it is only\r
+ // the Silverlight stack that does not support this.\r
+ return true;\r
+ }\r
}\r
-#endif\r
// Methods\r
\r
public virtual void Close()\r
{\r
throw new NotSupportedException ();\r
}\r
-#if TARGET_JVM //enable overrides for extenders\r
- public virtual void Dispose()\r
-#elif NET_4_0\r
public void Dispose ()\r
-#else\r
- void IDisposable.Dispose()\r
-#endif\r
{\r
- Close ();\r
+ Dispose (true);\r
+ }\r
+ \r
+ protected virtual void Dispose (bool disposing)\r
+ {\r
+ if (disposing)\r
+ Close ();\r
}\r
\r
void ISerializable.GetObjectData\r