C# Class Funcular.IdGenerators.BaseConversion.Base36Converter

Exibir arquivo Open project: piranout/Funcular.IdGenerators

Public Methods

Method Description
Decode ( string input ) : System.Int64

Decode the Base36 Encoded string into a number

Encode ( long input ) : String

Encode the given number into a Base36 string

FromGuid ( System.Guid guid ) : string
FromHex ( string hex ) : string
FromInt32 ( int int32 ) : string
FromInt64 ( long int64 ) : string
FromLong ( long decimalNumber ) : string

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

Private Methods

Method Description
Base36Converter ( ) : System

Method Details

Decode() public static method

Decode the Base36 Encoded string into a number
public static Decode ( string input ) : System.Int64
input string
return System.Int64

Encode() public static method

Encode the given number into a Base36 string
public static Encode ( long input ) : String
input long
return String

FromGuid() public static method

public static FromGuid ( System.Guid guid ) : string
guid System.Guid
return string

FromHex() public static method

public static FromHex ( string hex ) : string
hex string
return string

FromInt32() public static method

public static FromInt32 ( int int32 ) : string
int32 int
return string

FromInt64() public static method

public static FromInt64 ( long int64 ) : string
int64 long
return string

FromLong() public static method

Converts the given decimal number to the numeral system with the specified radix (in the range [2, 36]).
public static FromLong ( long decimalNumber ) : string
decimalNumber long The number to convert.
return string