/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
- using System.Reflection;
- namespace LinFu.IoC.Configuration.Interfaces
- {
- /// <summary>
- /// Represents a class that is responsible for generating methods
- /// from other existing methods.
- /// </summary>
- /// <typeparam name="TMethod">The method type to generate.</typeparam>
- public interface IMethodBuilder<TMethod>
- where TMethod : MethodBase
- {
- /// <summary>
- /// Creates a method from the <paramref name="existingMethod" />.
- /// </summary>
- /// <param name="existingMethod">The method that will be used to define the new method.</param>
- /// <returns>A method based on the old method.</returns>
- MethodBase CreateMethod(TMethod existingMethod);
- }
- }