Deepak Sharma  asks:

            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.


Hope that helps!