/src/LinFu.IoC/Configuration/Interfaces/IMethodInvoke.cs
http://github.com/philiplaureano/LinFu · C# · 22 lines · 9 code · 1 blank · 12 comment · 0 complexity · deaff4888054ffcb2090c48506a928ce MD5 · raw file
- using System.Reflection;
- namespace LinFu.IoC.Configuration.Interfaces
- {
- /// <summary>
- /// Represents a type that can invoke a method
- /// using a given set of method arguments.
- /// </summary>
- public interface IMethodInvoke<TMethod>
- where TMethod : MethodBase
- {
- /// <summary>
- /// Invokes the <paramref name="targetMethod" />
- /// using the given <paramref name="arguments" />.
- /// </summary>
- /// <param name="target">The target object instance.</param>
- /// <param name="targetMethod">The target method to invoke.</param>
- /// <param name="arguments">The arguments to be used with the method.</param>
- /// <returns>The method return value.</returns>
- object Invoke(object target, TMethod targetMethod, params object[] arguments);
- }
- }