"Use
numericString.To<DataType>()instead ofDataType.Parse(numericString)"
The To<...>() extension method on the string type allows you to make type conversions in a uniform way for many types. It's also briefer and more readable. Just like you can say myInt.ToString(), you can say myString.To<int>().
public long Foo(string commission)
{
return long.Parse(commission);
}should be 🡻
public string Foo(string commission)
{
return commision.To<long>();
}