diff options
author | Sebastien Pouliot <sebastien@ximian.com> | 2010-01-22 04:50:48 +0300 |
---|---|---|
committer | Sebastien Pouliot <sebastien@ximian.com> | 2010-01-22 04:50:48 +0300 |
commit | 33bb7e756a2576ce63da128db37a613a10a25d03 (patch) | |
tree | 0b528716b32bb4f8a0eb2d9beed09425dd42d32c /mcs | |
parent | ffa7bf81b0a8f3b4530238e6f2b9ffb6452c2823 (diff) |
2010-01-21 Sebastien Pouliot <sebastien@ximian.com>
* SocketAsyncEventArgs.cs: Apply Gendarme's ProtectCallToEventDelegatesRule
svn path=/trunk/mcs/; revision=150033
Diffstat (limited to 'mcs')
-rw-r--r-- | mcs/class/System/System.Net.Sockets/ChangeLog | 4 | ||||
-rw-r--r-- | mcs/class/System/System.Net.Sockets/SocketAsyncEventArgs.cs | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/mcs/class/System/System.Net.Sockets/ChangeLog b/mcs/class/System/System.Net.Sockets/ChangeLog index 55ab237f369..8fe3d7b1806 100644 --- a/mcs/class/System/System.Net.Sockets/ChangeLog +++ b/mcs/class/System/System.Net.Sockets/ChangeLog @@ -1,3 +1,7 @@ +2010-01-21 Sebastien Pouliot <sebastien@ximian.com> + + * SocketAsyncEventArgs.cs: Apply Gendarme's ProtectCallToEventDelegatesRule + 2009-12-04 Sebastien Pouliot <sebastien@ximian.com> * System.Net.Sockets/SocketAsyncEventArgs.cs: Implement diff --git a/mcs/class/System/System.Net.Sockets/SocketAsyncEventArgs.cs b/mcs/class/System/System.Net.Sockets/SocketAsyncEventArgs.cs index 831d00fc5c6..a769e8749a6 100644 --- a/mcs/class/System/System.Net.Sockets/SocketAsyncEventArgs.cs +++ b/mcs/class/System/System.Net.Sockets/SocketAsyncEventArgs.cs @@ -159,8 +159,9 @@ namespace System.Net.Sockets if (e == null) return; - if (e.Completed != null) - e.Completed (e.curSocket, e); + EventHandler<SocketAsyncEventArgs> handler = e.Completed; + if (handler != null) + handler (e.curSocket, e); } public void SetBuffer (int offset, int count) |