August 6, 2015
String.Empty Versus ""
If you’ve been in the .NET world for any length of time, you’ll eventually come across someone who claims String.Empty performs better than "". I was always skeptical of this claim because this scenario seemed like something the compiler could optimize. And because the .NET runtime manages string literals in an intern pool, my guess was they would both point to the same value. That’s what I suspected anyway but didn’t have any proof.
Read more