Various miscellaneous bits and pieces for re-use (.NET).