PageRenderTime 223ms CodeModel.GetById 80ms app.highlight 1ms RepoModel.GetById 140ms app.codeStats 0ms

/src/LinFu.AOP/Interfaces/IFieldFilter.cs

http://github.com/philiplaureano/LinFu
C# | 18 lines | 8 code | 1 blank | 9 comment | 0 complexity | fd5230cc886a3869b4c1b4cd60c041d8 MD5 | raw file
 1using Mono.Cecil;
 2
 3namespace LinFu.AOP.Cecil.Interfaces
 4{
 5    /// <summary>
 6    ///     Represents a type that determines whether or not a particular field get or set should be intercepted.
 7    /// </summary>
 8    public interface IFieldFilter
 9    {
10        /// <summary>
11        ///     Determines whether or not a particular field get or set should be intercepted.
12        /// </summary>
13        /// <param name="hostMethod">The host method.</param>
14        /// <param name="targetField">The target field.</param>
15        /// <returns>Returns <c>true</c> if the field should be intercepted; otherwise, it will return <c>false</c>.</returns>
16        bool ShouldWeave(MethodReference hostMethod, FieldReference targetField);
17    }
18}