Exemplo n.º 1
0
 public TryBlockInfoParent(TryBlockInfo info, TryBlockInfoParentType type)
 {
     TryBlockInfo = info;
     Type = type;
 }
Exemplo n.º 2
0
 public object Clone()
 {
     Dictionary<CFGNodeCluster, ExceptionHandler> handlers = new Dictionary<CFGNodeCluster, ExceptionHandler>();
     foreach (KeyValuePair<CFGNodeCluster, ExceptionHandler> handler in Handlers)
     {
         handlers.Add((CFGNodeCluster)handler.Key.Clone(), handler.Value);
     }
     TryBlockInfo clone = new TryBlockInfo
     {
         Parent = Parent,
         TryBlock = (CFGNodeCluster)TryBlock.Clone(),
         Handlers = handlers,
         ConsolidatedCatchBlock = ConsolidatedCatchBlock == null ? null : (CFGNodeCluster)ConsolidatedCatchBlock.Clone(),
         FinallyBlock = FinallyBlock == null ? null : (CFGNodeCluster)FinallyBlock.Clone()
     };
     return clone;
 }