PageRenderTime 37ms CodeModel.GetById 34ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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