Boo.Lang.Compiler.TypeSystem.TypeSystemServices.IsValidException C# (CSharp) Method

IsValidException() public method

public IsValidException ( IType type ) : bool
type IType
return bool
        public virtual bool IsValidException(IType type)
        {
            return IsAssignableFrom(ExceptionType, type);
        }

Usage Example

Beispiel #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