Skip to content

Commit 088f628

Browse files
authored
Ban InvariantCulture/InvariantCultureIgnoreCase (#18)
1 parent 785afd3 commit 088f628

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/files/BannedSymbols.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
P:System.DateTime.Now;Use System.DateTime.UtcNow instead.
22
P:System.DateTimeOffset.Now;Use System.DateTimeOffset.UtcNow instead.
33
P:System.DateTimeOffset.DateTime;Use System.DateTimeOffset.UtcDateTime instead.
4+
5+
F:System.StringComparison.InvariantCulture;InvariantCulture performs a linguistic comparison. Most of the time Ordinal is the correct one.
6+
F:System.StringComparison.InvariantCultureIgnoreCase;InvariantCultureIgnoreCase performs a linguistic comparison. Most of the time OrdinalIgnoreCase is the correct one.
7+
P:System.StringComparer.InvariantCulture;InvariantCulture performs a linguistic comparison. Most of the time Ordinal is the correct one.
8+
P:System.StringComparer.InvariantCultureIgnoreCase;InvariantCultureIgnoreCase performs a linguistic comparison. Most of the time OrdinalIgnoreCase is the correct one.

0 commit comments

Comments
 (0)