Through the suggestions lightbulb in Visual Studio one can automatically refactor a partial void method which contains await expression to become async method via the option "Make method async (stay void)". But that rewrite produces a method with a signature "partial async void" which is incorrect C# code. The async keyword must come before partial keyword as "async partial void", otherwise the code will not compile.
This issue has been moved from a ticket on Developer Community.
Through the suggestions lightbulb in Visual Studio one can automatically refactor a partial void method which contains await expression to become async method via the option "Make method async (stay void)". But that rewrite produces a method with a signature "partial async void" which is incorrect C# code. The async keyword must come before partial keyword as "async partial void", otherwise the code will not compile.
Original Comments
Feedback Bot on 9/20/2023, 09:18 PM:
(private comment, text removed)
Original Solutions
(no solutions)