Well, that might be a stupid question, but I couldn't find any information on it.
Are String.Empty and string.Empty the same? I always find myself gravitating toward using an uppercase version (String.Empty), because I prefer the color and appearance of it in my IDE than the lowercase version (string.Empty) ...
Is there a โrightโ way to use these that are different or completely dependent on personal preferences? It was my assumption that they are both the same, but to be honest, I never thought about it until for some reason today I thought, "If they both exist, they both must exist for some reason."
Is there a reason everyone knows about? If so, then what is it? Can anyone enlighten me?
PS "Exact duplicates" answer only half the question - "what is right?", But not "why do they both exist?"
Exact duplicate : What is the difference between a string and a string in C #?
Exact duplicate : String vs string in C #
c #
BenAlabaster Jan 16 '09 at 23:07 2009-01-16 23:07
source share