Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Core/Util
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv18800
Modified Files:
ReflectionUtils.cs
Log Message:
SPRNET-908 : ReflectionUtils.MethodIsOnOneOfTheseInterfaces does not correctly iterate over multiple interface types
Index: ReflectionUtils.cs
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Core/Util/ReflectionUtils.cs,v
retrieving revision 1.57
retrieving revision 1.58
diff -C2 -d -r1.57 -r1.58
*** ReflectionUtils.cs 24 Jan 2008 04:11:44 -0000 1.57
--- ReflectionUtils.cs 2 Apr 2008 16:21:22 -0000 1.58
***************
*** 83,86 ****
--- 83,87 ----
}
+
/// <summary>
/// Returns method for the specified <see cref="System.Type"/>, method
***************
*** 88,91 ****
--- 89,93 ----
/// <see cref="System.Type"/>s.
/// </summary>
+ /// <remarks>Searches with BindingFlags </remarks>
/// <param name="targetType">
/// The target <see cref="System.Type"/> to find the method on.
***************
*** 100,103 ****
--- 102,106 ----
Type targetType, string method, Type[] argumentTypes)
{
+ AssertUtils.ArgumentNotNull(targetType, "Type must not be null");
// try method exactly as specified first...
MethodInfo retMethod = targetType.GetMethod(
***************
*** 434,442 ****
try
{
! method = interfaceType.GetMethod(
method.Name,
BindingFlags.Instance | BindingFlags.Public | BindingFlags.DeclaredOnly,
null, paramTypes, null);
! if (method != null)
{
// found it...
--- 437,445 ----
try
{
! MethodInfo mi = interfaceType.GetMethod(
method.Name,
BindingFlags.Instance | BindingFlags.Public | BindingFlags.DeclaredOnly,
null, paramTypes, null);
! if (mi != null)
{
// found it...
|