I often use
private const string example = "";
private const string example = String.Empty;
String.Empty is not a constant it's only
readonly field. And since it's
readonly field (which is not known on compile time) it can't be assigned to a constant.
... //We need to call the String constructor so that the compiler doesn't mark this as a literal. //Marking this as a literal would mean that it doesn't show up as a field which we can access //from native. public static readonly String Empty;