Resharper Code Cleanup

This is automated so I didn't add any bugs into it.