Quickest way to convert a base 10 number to any base in .NET?
问题 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: Convert.ToString(1, x); I want to use this to achieve a massively high base taking advantage of numbers, all lower case