Source:
var s = new Socket(new SocketInformation());
Task.Factory.FromAsync(s.BeginAccept, s.EndAccept, null);
Task.Factory.FromAsync(new Func<AsyncCallback, object, IAsyncResult>(s.BeginAccept), s.EndAccept, null);
The last two lines bind to the same methods, but the delegate construction isn't marked as unnecessary.
Source:
The last two lines bind to the same methods, but the delegate construction isn't marked as unnecessary.