在 C# 中,同一个 catch 中可以有多种类型的异常吗?我只是想如果有可能做这样的事情,我感谢任何帮助
try { } catch (ArgumentException || FormatException x) { // do something.... } catch(Exception x) { throw; }
.net c#
.net ×1
c# ×1