/src/LinFu.IoC/Configuration/ReflectionMethodBuilder.cs
http://github.com/philiplaureano/LinFu · C# · 23 lines · 13 code · 1 blank · 9 comment · 0 complexity · 459914acfb49c55990b52e0d7c7f1c70 MD5 · raw file
- using System.Reflection;
- using LinFu.IoC.Configuration.Interfaces;
- namespace LinFu.IoC.Configuration
- {
- /// <summary>
- /// Represents a <see cref="IMethodBuilder{TMethod}" /> type that simply lets
- /// methods pass through it without performing any modifications to those methods.
- /// </summary>
- public class ReflectionMethodBuilder<TMethod> : IMethodBuilder<TMethod>
- where TMethod : MethodBase
- {
- /// <summary>
- /// Returns the <paramref name="existingMethod" /> unmodified.
- /// </summary>
- /// <param name="existingMethod">The method to be modified.</param>
- /// <returns>The modified method.</returns>
- public MethodBase CreateMethod(TMethod existingMethod)
- {
- return existingMethod;
- }
- }
- }