IsNullOrWhiteSpace

string.IsNullOrWhiteSpace()   内部参数为null时,用Trim() 报错。

 

System.NullReferenceException:“Object reference not set to an instance of an object.”

IMTC.WMS.Model.xxx.get 返回 null。

posted on 2023-01-18 10:48  ningmou  阅读(27)  评论(0)    收藏  举报