* RemotingServices.cs (IsOneWay): use IsDefined rather than
svn path=/trunk/mcs/; revision=33371
+2004-09-05 Ben Maurer <bmaurer@users.sourceforge.net>
+
+ * RemotingServices.cs (IsOneWay): use IsDefined rather than
+ GetCustomAttributes. It is much faster.
+
2004-07-22 Lluis Sanchez Gual <lluis@novell.com>
* ObjRef.cs: Fixed type check in in ObjRef constructor. The requested class
public static bool IsOneWay(MethodBase method)
{
- // TODO: use internal call for better performance
- object[] atts = method.GetCustomAttributes (typeof (OneWayAttribute), false);
- return atts.Length > 0;
+ return method.IsDefined (typeof (OneWayAttribute), false);
}
internal static bool IsAsyncMessage(IMessage msg)