Posts Concerning String.Length
Post
Cancel

Concerning String.Length

According to Brad Abrams (and it makes perfect sense) using String.Length, the code path is "significantly shorter"; however, there is not memory effect since there is always an empty string available.  Having a Microsoft guy say this just adds more weight to what I've been telling people: Use value.Length > 0 instead of value <> "".
This post is licensed under CC BY 4.0 by the author.