C# Класс Funcular.IdGenerators.BaseConversion.BaseConverter

A Base36 De- and Encoder
Adapted from the base36 encoder at http://www.stum.de/2008/10/20/base36-encoderdecoder-in-c/
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Convert ( string number, int fromBase, int toBase ) : string

Convert a number (expressed as a string) from fromBase to toBase

DecimalToArbitrarySystem ( long decimalNumber, int radix ) : string

Converts the given decimal number to the numeral system with the specified radix (in the range [2, 36]).

Описание методов

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

Convert a number (expressed as a string) from fromBase to toBase
public static Convert ( string number, int fromBase, int toBase ) : string
number string String representation of the number to be converted
fromBase int The current base of the number
toBase int The desired base to convert to
Результат string

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

Converts the given decimal number to the numeral system with the specified radix (in the range [2, 36]).
public static DecimalToArbitrarySystem ( long decimalNumber, int radix ) : string
decimalNumber long The number to convert.
radix int The radix of the destination numeral system (in the range [2, 36]).
Результат string