Correct me if I'm wrong
But, I thought there was a difference.
S1 = "";
S2 = "";
Doesn't this create 2 "different" string instances.
S1 = String.Empty;
S2 = String.Empty;
Doesn't this refer twice to same static instance?
This is a very important, especially when using a lot of strings. Perhaps
the compiler solves this.
Kind regards
Alexander
"Ole Hanson" <ol********@ole.ole> wrote in message
news:eo*************@tk2msftngp13.phx.gbl...
Hi
I am wondering if there is any programmatic difference between the
String.Empty and the "" for declaring an empty string?
Furthermore, is there any performance penalty by doing the one over the
other?
/Ole