Пример #1
0
 private bool IsInterceptable(MembersCollector collector, MemberInfo member)
 {
     if (collector.Type.IsInterface)
     {
         return(true);
     }
     if (member.HasAttribute(typeof(NonInterceptableAttribute)))
     {
         return(false);
     }
     if (member is MethodInfo && (member as MethodInfo).ContainsGenericParameters)
     {
         return(false);
     }
     return(true);
 }
        private bool IsInterceptable(MembersCollector collector, MemberInfo member)
        {
            if (collector.Type.IsInterface)
				return true;
			if (member.HasAttribute(typeof(NonInterceptableAttribute)))
				return false;
			if (member is MethodInfo && (member as MethodInfo).ContainsGenericParameters)
				return false;
			return true;
        }
 private bool IsInterceptable(MembersCollector collector, MemberInfo member)
 {
     return(collector.Type.IsInterface || member.HasAttribute(typeof(IInterceptable)));
 }
Пример #4
0
 private bool IsInterceptable(MembersCollector collector, MemberInfo member)
 {
     return collector.Type.IsInterface || member.HasAttribute(typeof(IInterceptable));
 }