public bool ShouldInterceptMethod(Type type, System.Reflection.MethodInfo memberInfo) { return(memberInfo.IsGetterOrSetterForPropertyWithAttribute(typeof(PageTypePropertyAttribute)) && memberInfo.IsCompilerGenerated()); }