Can I safely ignore CodeAnalysis warning: replace string == "" with string.IsNullOrEmpty ?
I've got code similar to this: string s = CreateString(); if (s == "") foo(s); If s equals "", foo should be called. If string is null, which should never happen, then a NullReferenceException is fine (as this is, after all, an exceptional situation). CodeAnalysis tells me to test for s.IsNullOrEmpty. This would alter the functionali...