Today I was creating a default parameter value in a constructor.
public SomeClass (String something = String.Empty)
{
// ...
}
The compiler complained.
Default parameter value for "something" must be a compile-time constant.
I was under the impression that Empty on the String class was a compile-time constant.
.field public static initonly string Empty
Am I missunderstanding the meaning of compile-time constant, or is it just more wackyness that I need to accept?