Possible Duplicate:
In C#, should I use string.Empty or String.Empty or “” ?
I just stumbled over the following sentence in this question/answer:
As of the C# 2.0 compiler, there is very little point to
String.Empty
anyway, and in fact in many cases it's a pessimisation, since the compiler can inline some references to""
but can't do the same withString.Empty
.
Is this statement true? Should we therefore always use ""
instead of string.Empty
?
Please note: I'm not asking about any coding styleguide (which is easier to read). I'd like to know if there is a functional difference (e.g. inlining).