I have and old(ish) C# method I wrote that takes a number and converts it to any base:
string ConvertToBase(int number, char baseChars);
It's not all that super speedy and neat. Is there a good, known way of achieving this in .NET?
I'm looking for something that allows me to use any base with an arbitrary string of characters to use.
This only allows bases 16, 10, 8 and 2:
Does anyone know of a good and efficient way of doing this in C#?