C# solution for a unit converter