/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

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