fix
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
@@ -54,7 +54,7 @@ public static class StringExtensions
|
||||
return Guid.Parse(str);
|
||||
}
|
||||
|
||||
public static Guid? AsGuidNull(this string str)
|
||||
public static Guid? AsGuidNull(this string? str)
|
||||
{
|
||||
if (Guid.TryParse(str, out var guid))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user