Inference/src/CodeGeneration/ILCodeGenerator.cs
/// <summary>
/// Adds the information of specified exception to include in intermediate code file.
/// </summary>
/// <param name="typeException">Exception to include.</param>
Adds the information of specified exception to include in intermediate code file.
Adds the information of specified exception to include in intermediate code file .
public void AddExceptionCode(DynamicExceptionManager typeException) {
            if (this.exceptions.ContainsKey(typeException.TypeName)) 
                return;
            this.exceptions.Add(typeException.TypeName, typeException);
            DynamicExceptionManager baseType = typeException.BaseException;
            while (baseType != null)
                if (!this.exceptions.ContainsKey(baseType.TypeName)) {
                    this.exceptions.Add(baseType.TypeName, baseType);
                    baseType = baseType.BaseException;
                } else
                    break; 
        }
public void AddExceptionCode ( DynamicExceptionManager typeException ) { if ( this . exceptions . ContainsKey ( typeException . TypeName ) ) return ; this . exceptions . Add ( typeException . TypeName , typeException ) ; DynamicExceptionManager baseType = typeException . BaseException ; while ( baseType != null ) if ( ! this . exceptions . ContainsKey ( baseType . TypeName ) ) { this . exceptions . Add ( baseType . TypeName , baseType ) ; baseType = baseType . BaseException ; } else break ; }
Adds the information of specified exception to include in intermediate code file.
Adds the information of specified exception to include in intermediate code file .
// {P} the exception isn't included yet //baseType = null;
typeException
DynamicExceptionManager
Exception to include.
Exception to include .