I often use String.Empty
for a placeholder, which equates to ""
. So my question, why does a const
not like String.Empty
? They compile identically.
// Good
private const string example = "";
// Bad
private const string example = String.Empty;
What in String.Empty
makes it not able to be used with a const
.