From: Alaa Masoud Date: Sat, 22 Feb 2020 20:04:16 +0000 (+0300) Subject: Use StringBuilder.Append(Char) instead of converting char to string (#32686) X-Git-Tag: submit/tizen/20210909.063632~9550 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9f4f3f8ec970c4e2f7d1e3155e3c2573c2b16508;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Use StringBuilder.Append(Char) instead of converting char to string (#32686) * Use StringBuilder.Append(Char) instead of converting char to string * revert unused local removal --- diff --git a/src/libraries/System.DirectoryServices.AccountManagement/src/System/DirectoryServices/AccountManagement/SAM/SAMUtils.cs b/src/libraries/System.DirectoryServices.AccountManagement/src/System/DirectoryServices/AccountManagement/SAM/SAMUtils.cs index c319be5..54a65cb 100644 --- a/src/libraries/System.DirectoryServices.AccountManagement/src/System/DirectoryServices/AccountManagement/SAM/SAMUtils.cs +++ b/src/libraries/System.DirectoryServices.AccountManagement/src/System/DirectoryServices/AccountManagement/SAM/SAMUtils.cs @@ -169,7 +169,7 @@ namespace System.DirectoryServices.AccountManagement break; default: - sb.Append(c.ToString()); // x --> x + sb.Append(c); // x --> x break; } } @@ -197,7 +197,7 @@ namespace System.DirectoryServices.AccountManagement default: sb.Append(@"\\"); - sb.Append(c.ToString()); // \x --> \x + sb.Append(c); // \x --> \x break; } }