/// <summary> /// Mark this position as the end of the last started block and /// make it a fault block. This fault block is associated with the /// specified try block. /// </summary> /// <param name="tryBlock">the try block associated with this fault block</param> public void EndFaultBlock(TryBlock tryBlock) { Fault fBlock= new Fault((CILLabel)blockStack[0],NewCodedLabel()); tryBlock.AddHandler(fBlock); }
/// <summary> /// Mark this position as the end of the last started block and /// make it a fault block. This fault block is associated with the /// specified try block. /// </summary> /// <param name="tryBlock">the try block associated with this fault block</param> public void EndFaultBlock(TryBlock tryBlock) { Fault fBlock = new Fault((CILLabel)blockStack[0], NewCodedLabel()); tryBlock.AddHandler(fBlock); }