The if keyword in the following statement is underlined in green by ReSharper:
if (readOnlyFields.Contains(propertyName)) return false;
return base.CanWriteProperty(propertyName);
ReSharper suggests the following change:
return !readOnlyFields.Contains(propertyName)
&& base.CanWriteProperty(propertyName);
Why is this "better"? I find the current code more readable and the result should be the same as far as I know. Any thoughts?