/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

  1. using System.Reflection;
  2. namespace LinFu.IoC.Configuration.Interfaces
  3. {
  4. /// <summary>
  5. /// Represents a type that can invoke a method
  6. /// using a given set of method arguments.
  7. /// </summary>
  8. public interface IMethodInvoke<TMethod>
  9. where TMethod : MethodBase
  10. {
  11. /// <summary>
  12. /// Invokes the <paramref name="targetMethod" />
  13. /// using the given <paramref name="arguments" />.
  14. /// </summary>
  15. /// <param name="target">The target object instance.</param>
  16. /// <param name="targetMethod">The target method to invoke.</param>
  17. /// <param name="arguments">The arguments to be used with the method.</param>
  18. /// <returns>The method return value.</returns>
  19. object Invoke(object target, TMethod targetMethod, params object[] arguments);
  20. }
  21. }