revert some resharper changes

This is an alternative to #363. i dont much care which one we do.