Browse by Tags

All Tags » Wacky Ideas » Evil Code » C# (RSS)

Of memory and strings

This post was provoked by a recent Stack Overflow question which asked whether there was an efficient representation of ASCII strings in .NET. In particular, the questioner wanted to story hundreds of thousands - possibly millions - of strings in memory...
Posted by skeet | 32 comment(s)
Filed under: , ,

"Magic" null argument testing

Warning: here be dragons. I don't think this is the right way to check for null arguments, but it was an intriguing idea. Today on Stack Overflow, I answered a question about checking null arguments . The questioner was already using an extension...