Tag Archives: .NET

Tuples rock my world

Value types in the .NET framework tend to have a static TryParse method for converting a string to a typed value.  Well, most of them do, the Guid type doesn’t for some reason.  The method takes a string and an output parameter for the result.
Output parameters suck and require a local variable to be passed [...]

Hide and seek with the ASP.NET cache

I started extracting some caching code into a more reusable class this week.  It comes from one of my favorite applications, which has ~10,000 objects cached at any given time.  I figured I’d start this blog off the right way and show off one of my more boneheaded code decisions.
Data in the applications I deal [...]