Author: spouliot
Date: 2008-02-10 14:46:34 -0500 (Sun, 10 Feb 2008)
New Revision: 95399

Modified:
   trunk/mcs/class/corlib/System.Runtime.Remoting.Proxies/ChangeLog
   trunk/mcs/class/corlib/System.Runtime.Remoting.Proxies/RealProxy.cs
Log:
2008-02-10  Sebastien Pouliot  <[EMAIL PROTECTED]>

        * RealProxy.cs: Use 'is' instead of 'as' and a null check. Found 
        using Gendarme new UseIsOperator rule.



Modified: trunk/mcs/class/corlib/System.Runtime.Remoting.Proxies/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.Remoting.Proxies/ChangeLog    
2008-02-10 19:30:47 UTC (rev 95398)
+++ trunk/mcs/class/corlib/System.Runtime.Remoting.Proxies/ChangeLog    
2008-02-10 19:46:34 UTC (rev 95399)
@@ -1,3 +1,8 @@
+2008-02-10  Sebastien Pouliot  <[EMAIL PROTECTED]>
+
+       * RealProxy.cs: Use 'is' instead of 'as' and a null check. Found 
+       using Gendarme new UseIsOperator rule.
+
 2007-05-03  Dick Porter  <[EMAIL PROTECTED]>
 
        * ProxyAttribute.cs: 

Modified: trunk/mcs/class/corlib/System.Runtime.Remoting.Proxies/RealProxy.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.Remoting.Proxies/RealProxy.cs 
2008-02-10 19:30:47 UTC (rev 95398)
+++ trunk/mcs/class/corlib/System.Runtime.Remoting.Proxies/RealProxy.cs 
2008-02-10 19:46:34 UTC (rev 95399)
@@ -162,7 +162,7 @@
                        MonoMethodMessage mMsg = (MonoMethodMessage) msg;
                        mMsg.LogicalCallContext = 
CallContext.CreateLogicalCallContext (true);
                        CallType call_type = mMsg.CallType;
-                       bool is_remproxy = (rp as RemotingProxy) != null;
+                       bool is_remproxy = (rp is RemotingProxy);
 
                        IMethodReturnMessage res_msg = null;
                        

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to