More on String.Empty
Deepak Sharma asks:prefix = o ns = "urn:schemas-microsoft-com:office:office"
/>
Where does String.Length == 0 stands in
terms of memory efficiency compared to these two methods? Any
ideas.
I chatted with the Dev lead that
owns String… here is his response:
Actually, there is no memory effect
here. There is always an empty string available. However, the code path for
String.Length == 0 is significantly shorter.
"urn:schemas:contacts" />Hope that helps!