PERWAPI.TryBlock.AddHandler C# (CSharp) Méthode

AddHandler() public méthode

Add a handler to this try block
public AddHandler ( HandlerBlock handler ) : void
handler HandlerBlock a handler to be added to the try block
Résultat void
        public void AddHandler(HandlerBlock handler)
        {
            //flags = handler.GetFlag();
            handlers.Add(handler);
        }

Usage Example

Exemple #1
0
 /// <summary>
 /// Mark this position as the end of the last started block and
 /// make it a finally block.  This finally block is associated with the
 /// specified try block.
 /// </summary>
 /// <param name="tryBlock">the try block associated with this finally block</param>
 public void EndFinallyBlock(TryBlock tryBlock)
 {
     Finally finBlock= new Finally((CILLabel)blockStack.Pop(),NewCodedLabel());
     tryBlock.AddHandler(finBlock);
 }
All Usage Examples Of PERWAPI.TryBlock::AddHandler