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 7566675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T14:28:27+00:00 2026-05-30T14:28:27+00:00

Delegate does the same job of function pointers. It can be viewed as the

  • 0

Delegate does the same job of function pointers. It can be viewed as the function pointers of the managed world. It simply represents the address of a function to call, along with a specific object whose method is to be called.

Many times I read the term Delegate along with the termEvent but I can not see the relationship between them. Is the Event a specific type of delegates?

  • 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-05-30T14:28:29+00:00Added an answer on May 30, 2026 at 2:28 pm

    Short answer: see my article on the topic. Longer answer:

    Events are a pattern on top of delegates. They’re an implementation of the publisher/subscriber pattern (aka observer pattern), using delegates as the means of representing a subscription.

    Whenever you see something like:

    public event EventHandler Foo;
    

    you should instead think of two methods:

    public void AddFooHandler(EventHandler handler) { ... }
    public void RemoveFooHandler(EventHandler handler) { ... }
    

    All that a client from the outside can do is subscribe and unsubscribe. In particular, the client cannot raise the event themselves (without a separate method being provided for that purpose) nor can they “replace” or remove other subscriptions.

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

Sidebar

Related Questions

Does anyone now how can I animate multiple layers at the same time using
So I read MSDN and Stack Overflow. I understand what the Action Delegate does
Take the method System.Windows.Forms.Control.Invoke(Delegate method) Why does this give a compile time error: string
Does the Java language have delegate features, similar to how C# has support for
Summary of my question: Does NSURLConnection retain its delegate? Detailed question and scenario: I
Why does this not work? Do I not understand delegate covariance correctly? public delegate
Why are we using ({ }) ? Is it delegate? What does it mean
Consider the delegate for a generic A to B function: public delegate B Fun<A,
So, I have a decent idea of what a delegate does, why use it,
Possible Duplicate: 'Delegate 'System.Action' does not take 0 arguments.' Is this a C# compiler

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.