Boo.Lang.Compiler.TypeSystem.TypeSystemServices.IsValidException C# (CSharp) Метод

IsValidException() публичный Метод

public IsValidException ( IType type ) : bool
type IType
Результат bool
        public virtual bool IsValidException(IType type)
        {
            return IsAssignableFrom(ExceptionType, type);
        }

Usage Example

Пример #1
0
 public RaiseStatement RaiseException(LexicalInfo lexicalInfo, IConstructor exceptionConstructor, params Expression[] args)
 {
     Debug.Assert(TypeSystemServices.IsValidException(exceptionConstructor.DeclaringType));
     return(new RaiseStatement(lexicalInfo, CreateConstructorInvocation(lexicalInfo, exceptionConstructor, args)));
 }
TypeSystemServices