Asynchronous work : async/await vs delegates vs AsyncEvent

Arsium ***** 331 Reputation points
2022-08-06T12:56:45.177+00:00

I always use delegates to make my functions asynchronous and wonder if there is better way to achieve asynchronous work. I know async/await or even AsyncEvent (like SocketAsyncEventArgs).
My question is : what is the difference between those three ways ? And why choosing one over the others ?

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,216 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Karen Payne MVP 35,031 Reputation points
    2022-08-06T15:13:24.093+00:00

    I would recommend you read the following post.

    How I see it, which one to select is dependent on the task at hand, not one is going to fit all task.

    0 comments No comments