Use string.IsNullOrEmpty
or string.IsNullOrWhiteSpace
to check for empty strings
CS-R1014
Anti-pattern
Major
1
Use StringComparison.OrdinalIgnoreCase
for case insensitive comparisons
CS-R1017
Anti-pattern
Major
1
Consider specifying the CultureInfo
parameter when possible
CS-R1018
Anti-pattern
Major
2