so what are the other benefits, if any, of using string.Empty
instead of ""? It looks less clear to me... any of the string.Empty
advocates like to make a case for it?
For me, the reason has always been that I (to quote Brendan
Tompkins[1] "hate having quoted strings in code". Even if "" is a very
special string literal, it is still a string literal, and if your code
contains many string literals scattered about, it could get hard to
debug, at least when these string literals are part of program logic
and not just printouts or composite formatting patterns. string.Empty
might mean to a prospective future toucher of your code that you
expressly want the empty string, whereas "" could mean a string
literal which just happens to be empty. Also, string.Empty is more
consistent with the usage style for constants like Integer.MaxValue,
Timeout.Infinite, etc. So I agree it's a coding style issue.