Skip to content

Commit 958c8a7

Browse files
authored
Update TestRazorCompiledItem.cs (dotnet#54211)
1 parent a103cb9 commit 958c8a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Mvc/shared/Mvc.Views.TestCommon/TestRazorCompiledItem.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ public TestRazorCompiledItem(Type type, string kind, string identifier, object[]
4747
public static string GetChecksum(string content)
4848
{
4949
var bytes = SHA1.HashData(Encoding.UTF8.GetBytes(content));
50-
return Convert.ToHexString(bytes).ToLowerInvariant();
50+
return Convert.ToHexStringLower(bytes);
5151
}
5252

5353
public static string GetChecksumSHA256(string content)
5454
{
5555
var bytes = SHA256.HashData(Encoding.UTF8.GetBytes(content));
56-
return Convert.ToHexString(bytes).ToLowerInvariant();
56+
return Convert.ToHexStringLower(bytes);
5757
}
5858
}

0 commit comments

Comments
 (0)