Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8560731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T16:20:38+00:00 2026-06-11T16:20:38+00:00

I was trying to understand the evolution of delegates. And how best can this

  • 0

I was trying to understand the evolution of delegates. And how best can this be understood than by understanding what came before it? I understand that the concept of delegates has come from function pointers in C++.

1. What is the primary reason for introducing the function pointers? Is
it to support multi-threading?

Henk Holterman: Delegates / function-pointers exist to provide a
level of flexibility. The selection of a method can be decoupled form
its invocation.

I have been introduced to delegates while looking at this great threading resource

http://www.albahari.com/threading/

This is what Joe Albahari has to say about asynchronous delegates:

ThreadPool.QueueUserWorkItem doesn’t provide an easy mechanism for
getting return values back from a thread after it has finished
executing. Asynchronous delegate invocations (asynchronous delegates
for short) solve this, allowing any number of typed arguments to be
passed in both directions. Furthermore, unhandled exceptions on
asynchronous delegates are conveniently rethrown on the original
thread (or more accurately, the thread that calls EndInvoke), and so
they don’t need explicit handling.

*2. Are all delegates asynchronous by nature?

Jon: A delegate is a pointer to code. It is not inherently either
synchronous or asynchronous; the manner on which it is invoked and the
result returned determines that.

Henk Holterman:When you have a delegate instance f you can
synchronously call f() or you can call the asynchronous
f.BeginInvoke()

  1. Is there any other uses of asynchronous delegates other than events?

dasblinkenlight: There are many uses of delegates in asynchronous
APIs, for example, .NET Asynchronous I/O.

  1. How has the delegate/thread support in C# evolved over the versions?
    *

dasblinkenlight: The core support of delegates remained the same,
but the language added many important features to make it more
convenient to define delegates.

C# 2.0: Introduction of anonymous delegates

C# 3.5: Added lambda expressions

C# 4.0: Added Task Parallel Library.

Edit: Most of my queries here have been clarified. If I could get a “history” for delegates and more practical usages for them, it would be great!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T16:20:40+00:00Added an answer on June 11, 2026 at 4:20 pm
    1. The primary reason for introducing delegates is to provide a mechanism for manipulating snippets of executable code: storing pointers to it, passing to functions, organize in data structures, and so on.

    2. Like all function invocations, invoking an individual delegate is synchronous, in the sense that the caller must wait for the delegate to finish before getting the control back. However, you can use delegates to implement asynchronous APIs by passing a piece of code that could be stored and executed later on (asynchronously).

    3. There are many uses of delegates in asynchronous APIs, for example, .NET Asynchronous I/O.

    4. The core support of delegates remained the same, but the language added many important features to make it more convenient to define delegates. For example, C#2.0 added anonymous delegates, and C#3.5 added lambdas.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to understand this open source app on github, it has a gem file:
Sorry if this doesn't make any sence, but I'm trying my best to understand
Trying to understand PNG format. Consider this PNG Image: The Image is taken from
Trying to understand Ruby a bit better, I ran into this code surfing the
Trying to understand the math of this code snippet. A token is provided which
Im trying to understand how class generics work and this bit just doesnt make
Trying to understand something that I don't know how to describe because I don't
Trying to understand why this doesn't work. I keep getting the following errors: left
Trying to understand this binding process of the WPF. See the code at the
I'm trying to understand what the affect of AsEnumerable() has over my data when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.