string.Empty

  • Thread starter Thread starter Smithers
  • Start date Start date
Michael S said:
Sure. I actually think it is a trivial discussion.

Pretty much, yes.
What I don't like is that string is sealed.

Whereas I'd be worried about a string that *isn't* sealed. I know that
string is sealed and immutable - therefore I can pass strings around
safely, knowing that nothing can change them at all.
For webdevelopment I'd like a SafeString that is never null.

I can't say I've ever found it much of a problem, to be honest. The ??
operator in C# 2 makes it easier, too.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top