Useful functionality in C#.  Will in the future take over from CompulsoryCat of Selfelected fame.