Cannot use String.Empty as a default value for an optional parameter

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 with String.Empty.

In C# 1.1 it was useful to avoid creating lots of independent objects all containing the empty string, but those days are gone. "" works just fine.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)