Skip to content

Commit

Permalink
Use OdrinalIgnoreCase iso InvariantCultureIgnoreCase
Browse files Browse the repository at this point in the history
  • Loading branch information
BCSharp committed Dec 11, 2023
1 parent bf098a1 commit 5c67e64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Src/Microsoft.Dynamic/DebugOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ internal static class DebugOptions {

private static bool ReadOption(string name) {
string envVar = ReadString(name);
return "true".Equals(envVar, StringComparison.InvariantCultureIgnoreCase);
return "true".Equals(envVar, StringComparison.OrdinalIgnoreCase);
}

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "name")]
Expand Down
4 changes: 2 additions & 2 deletions Src/Microsoft.Dynamic/Generation/AssemblyGen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,8 @@ private static void CopyDirectory(string to, string from) {
string toFile = Path.Combine(to, fi.Name);
FileInfo toInfo = new FileInfo(toFile);

if (fi.Extension.Equals(".dll", StringComparison.InvariantCultureIgnoreCase)
|| fi.Extension.Equals(".exe", StringComparison.InvariantCultureIgnoreCase)) {
if (fi.Extension.Equals(".dll", StringComparison.OrdinalIgnoreCase)
|| fi.Extension.Equals(".exe", StringComparison.OrdinalIgnoreCase)) {
if (!File.Exists(toFile) || toInfo.CreationTime != fi.CreationTime) {
try {
File.Copy(filename, toFile, true);
Expand Down

0 comments on commit 5c67e64

Please sign in to comment.