C# Class Spring.Retry.Classify.Util.SimpleMethodInvoker

Simple implementation of the IMethodInvoker interface that invokes a method on an object. If the method has no arguments, but arguments are provided, they are ignored and the method is invoked anyway. If there are more arguments than there are provided, then an exception is thrown.
Inheritance: IMethodInvoker
Afficher le fichier Open project: spring-projects/spring-net-retry

Méthodes publiques

Méthode Description
Equals ( object obj ) : bool

The equals.

GetHashCode ( ) : int

The get hash code.

InvokeMethod ( ) : object

The invoke method.

SimpleMethodInvoker ( object targetObject, MethodInfo method ) : System

Initializes a new instance of the SimpleMethodInvoker class.

SimpleMethodInvoker ( object targetObject, string methodName ) : System

Initializes a new instance of the SimpleMethodInvoker class.

Private Methods

Méthode Description
ExtractTarget ( object target, MethodInfo method ) : object

Method Details

Equals() public méthode

The equals.
public Equals ( object obj ) : bool
obj object The obj.
Résultat bool

GetHashCode() public méthode

The get hash code.
public GetHashCode ( ) : int
Résultat int

InvokeMethod() public méthode

The invoke method.
public InvokeMethod ( ) : object
Résultat object

SimpleMethodInvoker() public méthode

Initializes a new instance of the SimpleMethodInvoker class.
public SimpleMethodInvoker ( object targetObject, MethodInfo method ) : System
targetObject object The target object.
method System.Reflection.MethodInfo The method.
Résultat System

SimpleMethodInvoker() public méthode

Initializes a new instance of the SimpleMethodInvoker class.
public SimpleMethodInvoker ( object targetObject, string methodName ) : System
targetObject object The target object.
methodName string The method name.
Résultat System