Aqueduct.Utils.BaseConverter.ToBase C# (CSharp) Метод

ToBase() публичный статический Метод

Converts a number from any base between 2 and 36 to any base between 2 and 36.
public static ToBase ( string numberAsString, ushort fromBase, ushort toBase ) : string
numberAsString string The number to be converted.
fromBase ushort The base from which to convert. Has to be between 2 and 36.
toBase ushort The base to which to convert. Has to be between 2 and 36.
Результат string
		public static string ToBase(string numberAsString, ushort fromBase, ushort toBase)
		{
			ulong base10 = BaseConverter.ToBase10(numberAsString, fromBase);
			return BaseConverter.FromBase10(base10, toBase);
		}