/src/LinFu.AOP/Interfaces/ITypeFilter.cs

http://github.com/philiplaureano/LinFu · C# · 17 lines · 8 code · 1 blank · 8 comment · 0 complexity · 24fec81801a604d8a776bce8570b07be MD5 · raw file

  1. using Mono.Cecil;
  2. namespace LinFu.AOP.Cecil
  3. {
  4. /// <summary>
  5. /// Represents a type that determines whether or not a particular type should be modified.
  6. /// </summary>
  7. public interface ITypeFilter
  8. {
  9. /// <summary>
  10. /// Determines whether or not a type should be modified.
  11. /// </summary>
  12. /// <param name="type">The target type.</param>
  13. /// <returns>Returns <c>true</c> if the type should be modified.</returns>
  14. bool ShouldWeave(TypeReference type);
  15. }
  16. }