catch关键字如何确定抛出的异常类型?在选择要执行的catch块时会发生什么过程?try int[] myArray = new int[0];}
catch (IndexOutOfRangeException ex) { } // how does the CLR know to enter here?catch (InvalidCastException
我遇到了try/catch块的问题,但我似乎不能确切地了解try/catch在运行时是如何工作的,我认为它可能有我的答案。我有以下try/catch代码块:{}{
Log.Error("oh no!")System.TypeLoadException: Could not load type SDK.My