Latest RestSharp fails to compile Postman C# generated code

I reported this issue years ago, and was dismayed to find my own evidence today which confirms that the complaints on GitHub etc… about the Postman C# code generator being incompatible with the latest RestSharp library are 100% correct.

This image clearly demonstrates the issue: