Пример #1
0
        public bool IsExceptionOrSubtype(ExceptionDocCommentModel exceptionDocumentation)
        {
            if (exceptionDocumentation.Accessor != null && exceptionDocumentation.Accessor != ExceptionAccessor)
            {
                return(false);
            }

            if (ExceptionType == null)
            {
                return(false);
            }

            if (exceptionDocumentation.ExceptionType == null)
            {
                return(false);
            }

            return(ExceptionType.IsSubtypeOf(exceptionDocumentation.ExceptionType));
        }