PageRenderTime 61ms CodeModel.GetById 40ms app.highlight 1ms RepoModel.GetById 19ms app.codeStats 0ms

/src/LinFu.IoC/Configuration/Interfaces/IMethodBuilder.cs

http://github.com/philiplaureano/LinFu
C# | 20 lines | 9 code | 1 blank | 10 comment | 0 complexity | 429e42ec9877dd1af8542aa69de1c056 MD5 | raw file
 1using System.Reflection;
 2
 3namespace LinFu.IoC.Configuration.Interfaces
 4{
 5    /// <summary>
 6    ///     Represents a class that is responsible for generating methods
 7    ///     from other existing methods.
 8    /// </summary>
 9    /// <typeparam name="TMethod">The method type to generate.</typeparam>
10    public interface IMethodBuilder<TMethod>
11        where TMethod : MethodBase
12    {
13        /// <summary>
14        ///     Creates a method from the <paramref name="existingMethod" />.
15        /// </summary>
16        /// <param name="existingMethod">The method that will be used to define the new method.</param>
17        /// <returns>A method based on the old method.</returns>
18        MethodBase CreateMethod(TMethod existingMethod);
19    }
20}