public TryBlockInfoParent(TryBlockInfo info, TryBlockInfoParentType type) { TryBlockInfo = info; Type = type; }
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; }