瀏覽代碼

Fix build break from 81fb20737f810def6dde88d87a1b2f23cdb736c3

The HttpWebResponse stub that is used e.g. on the monotouch_watch profile was missing an overload that this commit was using.
Alexander Köplinger 9 年之前
父節點
當前提交
f4475ff013
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      mcs/class/System/System.Net/HttpWebResponse.platformnotsupported.cs

+ 5 - 0
mcs/class/System/System.Net/HttpWebResponse.platformnotsupported.cs

@@ -36,6 +36,11 @@ namespace System.Net
 	{
 		const string EXCEPTION_MESSAGE = "System.Net.HttpWebResponse is not supported on the current platform.";
 
+		internal HttpWebResponse (Uri uri, string method, WebConnectionData data, CookieContainer container)
+		{
+			throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
+		}
+
 		[Obsolete ("Serialization is obsoleted for this type", false)]
 		protected HttpWebResponse (SerializationInfo serializationInfo, StreamingContext streamingContext)
 		{