Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • async void DoSomething1() <== Avoid async void. It is intended for event handlers, and the DoSomething1 doesn't look like an event handler. Commented Oct 27, 2021 at 7:54
  • @TheodorZoulias yes, this is demonstration code intended to show what can happen if the base caller (or someone up the stack) is an event handler. You can also change that if you want to see the difference in behaviour. Commented Oct 29, 2021 at 0:24
  • 1
    Derf Skren if you have to use bad practices for some reason, you should explain what the reason is inside the answer, and also warn the readers about the dangers of the specific bad practice. Otherwise you are learning to the people habits that will later have to unlearn. Commented Oct 29, 2021 at 6:45