The use of the old asynchronous BeginX/EndX pattern is best avoided. Especially in code meant to teach new or junior programmers. Instead it would be better to teach how to use a Task-based pattern instead, as that is what is going to be used in production code.
Would you be interested in a proof-of-concept implementation of this approach for you to look at?
The use of the old asynchronous BeginX/EndX pattern is best avoided. Especially in code meant to teach new or junior programmers. Instead it would be better to teach how to use a Task-based pattern instead, as that is what is going to be used in production code.
Would you be interested in a proof-of-concept implementation of this approach for you to look at?