Imported Upstream version 4.6.0.150

Former-commit-id: 73e3bb1e96dd09dc931c1dfe559d2c7f7b8b02c7
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2016-08-23 13:20:38 +00:00
parent 02ac915603
commit b95516a3dd
239 changed files with 4096 additions and 1544 deletions

View File

@ -1 +1 @@
07896d201380eea623b23d5a0ecfd9365798af18
f894f490612fc2b6ff9f185bd113be8941234c9b

View File

@ -101,7 +101,6 @@ namespace System.Net.Sockets
set { remote_ep = value; }
}
#if !NET_2_1
public IPPacketInformation ReceiveMessageFromPacketInfo {
get;
private set;
@ -112,6 +111,7 @@ namespace System.Net.Sockets
set;
}
#if !NET_2_1
public TransmitFileOptions SendPacketsFlags {
get;
set;
@ -185,9 +185,7 @@ namespace System.Net.Sockets
BufferList = null;
RemoteEndPoint = null;
UserToken = null;
#if !NET_2_1
SendPacketsElements = null;
#endif
}
public void Dispose ()

View File

@ -267,7 +267,7 @@ namespace System.Net.Sockets
public void Close ()
{
((IDisposable) this).Dispose ();
Dispose ();
}
public void Connect (IPEndPoint remoteEP)
@ -382,7 +382,7 @@ namespace System.Net.Sockets
return client.BeginConnect (host, port, requestCallback, state);
}
void IDisposable.Dispose ()
public void Dispose ()
{
Dispose (true);
GC.SuppressFinalize (this);

View File

@ -125,12 +125,10 @@ namespace System.Net.Sockets
socket.Bind (localEP);
}
#region Close
public void Close ()
{
((IDisposable) this).Dispose ();
Dispose ();
}
#endregion
#region Connect
void DoConnect (IPEndPoint endPoint)
@ -570,7 +568,7 @@ namespace System.Net.Sockets
#endregion
#region Disposing
void IDisposable.Dispose ()
public void Dispose ()
{
Dispose (true);
GC.SuppressFinalize (this);