PageRenderTime 142ms CodeModel.GetById 135ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 1ms

/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
 1using System.Reflection;
 2using LinFu.IoC.Configuration.Interfaces;
 3
 4namespace LinFu.IoC.Configuration
 5{
 6    /// <summary>
 7    ///     Represents a <see cref="IMethodBuilder{TMethod}" /> type that simply lets
 8    ///     methods pass through it without performing any modifications to those methods.
 9    /// </summary>
10    public class ReflectionMethodBuilder<TMethod> : IMethodBuilder<TMethod>
11        where TMethod : MethodBase
12    {
13        /// <summary>
14        ///     Returns the <paramref name="existingMethod" /> unmodified.
15        /// </summary>
16        /// <param name="existingMethod">The method to be modified.</param>
17        /// <returns>The modified method.</returns>
18        public MethodBase CreateMethod(TMethod existingMethod)
19        {
20            return existingMethod;
21        }
22    }
23}