Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

DelegateInfo.IsSignatureCompatible(EventInfo, MethodInfo) Method

Checks if the signature of the supplied handlerMethod is compatible with the signature expected by the supplied eventMeta.

[Visual Basic]
Public Overloads Shared Sub IsSignatureCompatible( _
   ByVal eventMeta As EventInfo, _
   ByVal handlerMethod As MethodInfo _
)
[C#]
public static bool IsSignatureCompatible(
   EventInfo eventMeta,
   MethodInfo handlerMethod
);

Parameters

eventMeta
The event to be checked against.
handlerMethod
The method signature to check for compatibility.

Return Value

true if the signature of the supplied handlerMethod is compatible with the signature expected by the supplied eventMeta; false if not or either of the supplied parameters is a null reference (Nothing in Visual Basic).

See Also

DelegateInfo Class | Spring.Util Namespace | DelegateInfo.IsSignatureCompatible Overload List | IsSignatureCompatible