CastleTests.LogHook.ShouldInterceptMethod C# (CSharp) Method

ShouldInterceptMethod() public method

public ShouldInterceptMethod ( Type type, MethodInfo memberInfo ) : bool
type System.Type
memberInfo System.Reflection.MethodInfo
return bool
		public bool ShouldInterceptMethod(Type type, MethodInfo memberInfo)
		{
			Assert.AreEqual(targetTypeToAssert, type);

			askedMembers.Add(memberInfo);

			if (screeningEnabled && memberInfo.Name.StartsWith("Sum"))
			{
				return false;
			}

			return true;
		}