【发布时间】:2019-08-22 20:49:18
【问题描述】:
在 IOS xamarin 表单项目中:
UIImage.LoadFromData(null)
没有例外
与
try { UIImage.LoadFromData(null); } catch {}
catch 块中抛出异常..
我需要没有 try|catch 的异常
【问题讨论】:
-
你的问题是什么?
-
如果您没有在代码的其他地方处理“全局”异常,那么无论您如何编写代码,它都是
System.ArgumentNullException: Value cannot be null.异常...