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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:07:27+00:00 2026-05-26T09:07:27+00:00

I recently attended a interview in C# where i was asked a question about

  • 0

I recently attended a interview in C# where i was asked a question about Events and delegates in C#

The person asked me when a event say button gets clicked, which gets called first event or delegate?

Does the delegate calls the event or the event calls delegate?

Can we have a event without a delegate in c#?

  • 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-26T09:07:28+00:00Added an answer on May 26, 2026 at 9:07 am

    An event is simply a code construct implemented in .NET as a multi-cast delegate.

    When an event is “raised” (which can only be done by code in the same class as the event; event raising must happen within “protected” scope), the delegates are invoked one at a time, in a synchronous fashion but not necessarily in any deterministic order. The event IS the delegate, so when the event is raised for a button being clicked, the delegates are invoked by the runtime, which has received the Windows message that the user clicked on the GUI area for the button.

    The statements “the event is raised” and “the delegates are invoked” are equivalent statements; it’s like asking “which comes first, the chicken or the gallus domesticus?”.

    Now, events often cascade, especially when we’re talking about UI. There is a MouseUp event, invoked when the mouse button is released, which can fire one or more other events such as MouseClick, MouseDoubleClick, DragDrop, etc. You may not attach a handler to the MouseUp event, but there is built-in logic behind the scenes of MouseUp to raise the MouseClick event which you DO handle. So, in this sense, you could say that the MouseUp event “comes first” and calls the MouseClick handler delegate.

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

Sidebar

Related Questions

Recently I attended interview in java, the interviewer asked a question like below: I
I recently attended an interview and they asked me the question Why Interfaces are
I recently attended an interview and was asked the following question. There are two
Recently I Attended an interview. This question was asked. This is the scenario. We
I recently attended a interview where the person asked me what is order of
Recently I attended an interview where they asked me to write a C program
recently I attended a talk on data-mining,and I missed some points by the lecturer,which
I attended interview for samsung. They asked lot of questions on memory layout of
Recently i have attended an interview . A code snippet is given to me.I
Recently I attended Jeffrey Richter's training courses about .NET. He mentions one strategy of

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.