I've been running StyleCop over my code and one of the recommendations SA1122 is to use string.Empty rather than "" when assigning an empty string to a value.
My question is why is this considered best practice. Or, is this considered best practice? I assume there is no compiler difference between the two statements so I can only think that it's a readability thing?
Best Answer
One valid reason is that it makes it clear this is not a typo or placeholder, that you really meant to use the empty string here.
I don't know if it's considered "best practice".