This commit is contained in:
2023-08-03 08:58:53 +03:00
parent c82f8e3537
commit ad31d3ffce
30 changed files with 697 additions and 24 deletions
+5 -6
View File
@@ -9,12 +9,11 @@ public static class GuidExtensions
public static string ToShort(this Guid guid)
{
/*string encoded = Convert.ToBase64String(guid.ToByteArray());
encoded = encoded
.Replace("/", "_")
.Replace("+", "-");
return encoded.Substring(0, 22);*/
return guid.ToString("N");
}
public static string? ToShort(this Guid? guid)
{
return guid?.ToString("N");
}
}