C#如何查看异常的类型

try{}catch (Exception ex){}如何查看ex再具体一点的异常类型
2025-04-14 01:20:49
推荐回答(2个)
回答1:

可以查看
ex.InnerException

回答2:

ex.GetType()