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/
파일 보기 프로젝트 열기: piranout/Funcular.IdGenerators 1 사용 예제들

공개 메소드들

메소드 설명
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