3 ms·
This is a rough one, because while Microsoft's own docs tell you not to use async void, all of their demo code that I've seen does. Granted, it's demo code and
by scrabble 11y ago
This is a rough one, because while Microsoft's own docs tell you not to use async void, all of their demo code that I've seen does.
Granted, it's demo code and not production code, but less experienced developers do not always pick up on that.
- douche 11y agoThere are often some startlingly bad practices in some of the Microsoft sample code. I've worked with an SDK where the majority of the example projects would crash out before illustrating the point of the example, because event callbacks that were hit by the code executed in the sample were just stubbed in with throw new NotImplementedException();