Ok so here's the C# code that's breaking since I updated RestSharp to the current version:
restRequest.Files.Add((FileParameter)file); // Added cast for clarity
According to the the current official documentation, this is the correct alternative:
restRequest.AddFile((FileParameter)file);
However, that appears to be incorrect, as it throws this exception:
No overload for method 'AddFile' takes 1 arguments
This directly contradicts the RestSharp docs. I haven't been able to find any way to get around this. I tried the overloads that are there but FileParameter no longer contains the Writer property which would be required and I can't find any docs mentioning where that was moved to.
What am I missing?
