resharper-postfix icon indicating copy to clipboard operation
resharper-postfix copied to clipboard

Handle `!x.P.EnumMember` as `x.P != Enum.EnumMember`

Open ashmind opened this issue 10 years ago • 4 comments

Currently x.P.EnumMember generates x.P == Enum.EnumMember. Which is awesome btw.

However !x.P.EnumMember generates !(x.P == Enum.EnumMember). I think x.P != Enum.EnumMember would be better for that case.

ashmind avatar Feb 04 '15 21:02 ashmind

Shouldn't it be x.P.EnumMember.not?

hazzik avatar Feb 04 '15 22:02 hazzik

It could be, but for not I don't actually use postfix as that's (how I think).not

ashmind avatar Feb 04 '15 22:02 ashmind

So I suggest both should work in the same way.

ashmind avatar Feb 04 '15 22:02 ashmind

.not works and produces correct result:)

hazzik avatar Feb 05 '15 02:02 hazzik