Formatting code into a single line using ReSharper
Make sure ReSharper → Options → Code Editing → C# → Formatting Style → Line Breaks and Wrapping → "Wrap Long Lines" is turned off.
Use Line Breaks and Wrapping → Preserve Existing Formatting → Keep existing line breaks.