|
|
@@ -26,10 +26,12 @@ namespace System.Net
|
|
|
{
|
|
|
}
|
|
|
|
|
|
- protected WebException (SerializationInfo serializationInfo,
|
|
|
- StreamingContext streamingContext)
|
|
|
- : base (serializationInfo, streamingContext)
|
|
|
+ protected WebException (SerializationInfo info,
|
|
|
+ StreamingContext context)
|
|
|
+ : base (info, context)
|
|
|
{
|
|
|
+ status = (WebExceptionStatus) info.GetInt32 ("web_status");
|
|
|
+ response = (WebResponse) info.GetValue ("web_response", typeof (WebResponse));
|
|
|
}
|
|
|
|
|
|
public WebException (string message, Exception innerException)
|
|
|
@@ -68,6 +70,8 @@ namespace System.Net
|
|
|
void ISerializable.GetObjectData (SerializationInfo info, StreamingContext context)
|
|
|
{
|
|
|
base.GetObjectData (info, context);
|
|
|
+ info.AddValue ("web_status", (int) status, typeof (int));
|
|
|
+ info.AddValue ("web_response", response, typeof (WebResponse));
|
|
|
}
|
|
|
}
|
|
|
}
|