We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc77ca9 commit 966d2cdCopy full SHA for 966d2cd
1 file changed
System/Base62.cs
@@ -37,6 +37,12 @@ namespace System
37
/// </summary>
38
static partial class Base62
39
{
40
+ /// <summary>
41
+ /// Encodes a Guid into a base62 string.
42
+ /// </summary>
43
+ public static string ToBase62(this Guid guid)
44
+ => Encode(BigInteger.Abs(new BigInteger(guid.ToByteArray())));
45
+
46
/// <summary>
47
/// Encodes a numeric value into a base62 string.
48
0 commit comments