Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (12 sloc) 330 Bytes

MA0006 - Use string.Equals instead of == or !=

You should use string.Equals instead of == or != to improve the readability of the code.

"" == "";

// Should be
string.Equals("", "", StringComparison.Ordinal);
"" != "";

// Should be
!string.Equals("", "", StringComparison.Ordinal);
You can’t perform that action at this time.