c# - Set string comparison for assembly -
i wanted set stringcomparison.invariantcultureignorecase
all strings compared in assembly. possible? know, can set parameter every time compare strings
string1.equals(string2, stringcomparison.invariantcultureignorecase)
but not case. can write own iequalitycomparer<string>
similar example above.
if dont want make changes source code, can use "caseless" fody addin , configure in fodyweavers.xml
:
<caseless stringcomparison="invariantcultureignorecase"/>
Comments
Post a Comment