Common utility functions I tend to carry from one C# project to the next.