Why is there no Char.Empty like String.Empty?

There’s no such thing as an empty char. The closest you can get is '\0', the Unicode “null” character. Given that you can embed that within string literals or express it on its own very easily, why would you want a separate field for it? Equally, the “it’s easy to confuse "" and " "” arguments don’t apply for '\0'.

If you could give an example of where you’d want to use it and why you think it would be better, that might help…

Leave a Comment