Esempio n. 1
0
 /// <summary>
 /// Decodes the given base64 string
 /// </summary>
 /// <param name="value">The base64 encoded string of a Guid</param>
 /// <returns>A new Guid</returns>
 public static Guid Decode(string value)
 {
     return(new Guid(Base62Converter.FromBase62String(value)));
 }
Esempio n. 2
0
 public static string ToBase62(this byte[] buffer)
 {
     return(Base62Converter.ToBase62String(buffer));
 }
Esempio n. 3
0
 /// <summary>
 /// Encodes the given Guid as a base62 string.
 /// </summary>
 /// <param name="guid">The Guid to encode</param>
 /// <returns></returns>
 public static string Encode(Guid guid)
 {
     return(Base62Converter.ToBase62String(guid.ToByteArray()));
 }