Пример #1
0
 public static int GetIndexOfFirstExceptionThrown <TException>()
 {
     return(ExceptionsThrown.FindIndex(e => e != null && e.GetType() == typeof(TException)));
 }
Пример #2
0
 public static int GetIndexOfFirstExceptionThrown()
 {
     return(ExceptionsThrown.FindIndex(e => e != null));
 }