有没有办法在c#中检查字符串是null还是空白("")?
目前我必须先检查两个条件,null然后检查空白值
null
if(val == "" || val == null) { return true; }
.net c#
.net ×1
c# ×1