A Base36 De- and Encoder
Adapted from the base36 encoder at http://www.stum.de/2008/10/20/base36-encoderdecoder-in-c/
コード例 #1
0
 public static string FromInt64(long int64)
 {
     return(BaseConverter.Convert(number: int64.ToString(CultureInfo.InvariantCulture), fromBase: 10, toBase: 36));
 }
コード例 #2
0
 public static string FromGuid(Guid guid)
 {
     return(BaseConverter.Convert(guid.ToString("N"), 16, 36));
 }
コード例 #3
0
 public static string FromInt32(int int32)
 {
     return(BaseConverter.Convert(int32.ToString(CultureInfo.InvariantCulture), 10, 36));
 }
コード例 #4
0
 public static string FromHex(string hex)
 {
     return(BaseConverter.Convert(hex.ToUpper(), 16, 36));
 }