[Performance][VB.NET].NET空字串判斷徹底研究
.NET下的空字串判斷整體來說大概可分為下列幾種方法: 用 is Nothing 判斷。e.x. If str Is Nothing用 = Nothing 判斷(類別中只有字串可以用 = Nothing 來判斷)。e.x. If str = Nothing用 = "" 判斷。e.x. If str = ““用 = String.Empty 判斷。e.x. If str = String.Empty用 Is String.Empty 判斷。e.x. If str Is String.Empty用 String.IsNullOrEmpty(str) 判斷。e.x. If String.IsNullOrEmpty(str)用 String.Length = 0 判斷。e.x. If str.Length = 0 ...