Config files for DLLs

Use .config files for your class library DLLs just like you would with an ASP.NET’s web.config.

Tags:

Short GUID

Create a short GUID in .NET.

Expiring Cache in C#

Ever need a simple cache that automatically expires items, removing them after a given time has elapsed? Well now you’ve got it: ExpiringValueCache and ExpiringObjectCache. ExpiringValueCache is used to store value types. ExpiringObjectCache is used to store reference types.
A background thread continuously runs, checking for expired items in a generic Dictionary. The size of the [...]

Syntactic Sugar for C#

I have a small list of demands for C# that comes only out of love. Hell, they even make sense. Can we get these supported in C# 4.0, or what? Unlikely, but ideally. If you saw my post about Guid.TryParse(), you’d know that these things can take ones. One can hope though!
Variable Declaration in If [...]