Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit a46da94

Browse files
committed
Simplify "Char" to "char"
Also one case of "String" to "string" in the same file. Per PR feedback.
1 parent c3e5d2a commit a46da94

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Helpers.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ public static string ToHexStringUpper(this byte[] bytes)
3535

3636
// Decode a hex string-encoded byte array passed to various X509 crypto api. The parsing rules are overly forgiving but for compat reasons,
3737
// they cannot be tightened.
38-
public static byte[] DecodeHexString(this String s)
38+
public static byte[] DecodeHexString(this string s)
3939
{
4040
int whitespaceCount = 0;
4141

4242
for (int i = 0; i < s.Length; i++)
4343
{
44-
if (Char.IsWhiteSpace(s[i]))
44+
if (char.IsWhiteSpace(s[i]))
4545
whitespaceCount++;
4646
}
4747

@@ -50,7 +50,7 @@ public static byte[] DecodeHexString(this String s)
5050

5151
for (int index = 0, i = 0; index < cbHex; index++)
5252
{
53-
if (Char.IsWhiteSpace(s[i]))
53+
if (char.IsWhiteSpace(s[i]))
5454
{
5555
i++;
5656
}

src/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Windows/StorePal.Find.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ private static void ValidateOidValue(String keyValue)
449449
for (int i = 1; i < len; i++)
450450
{
451451
// ensure every character is either a digit or a dot
452-
if (Char.IsDigit(keyValue[i]))
452+
if (char.IsDigit(keyValue[i]))
453453
continue;
454454
if (keyValue[i] != '.' || keyValue[i + 1] == '.') // disallow double dots
455455
throw new ArgumentException(SR.Argument_InvalidOidValue);

0 commit comments

Comments
 (0)