Exemple #1
0
        public void AddEvent(ILConversion conversion, ExceptionBlockEventKind eventKind, ExceptionHandlingInfo handlingInfo, int offset, ExceptionBlock exceptionBlock, ExceptionHandler exceptionHandler)
        {
            var entry = new ExceptionBlockEventEntry()
            {
                ExceptionBlock   = exceptionBlock,
                Kind             = eventKind,
                Offset           = offset,
                ExceptionHandler = exceptionHandler
            };

            if (!handlingInfo.Events.TryGetValue(offset, out List <ExceptionBlockEventEntry> eventList))
            {
                eventList = new List <ExceptionBlockEventEntry>();

                handlingInfo.Events.Add(offset, eventList);
            }

            eventList.Add(entry);
        }
Exemple #2
0
 public void AddEvent(ILConversion conversion, ExceptionBlockEventKind eventKind, ExceptionHandlingInfo handlingInfo, int offset, ExceptionBlock exceptionBlock)
 {
     AddEvent(conversion, eventKind, handlingInfo, offset, exceptionBlock, null);
 }