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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T06:13:04+00:00 2026-05-15T06:13:04+00:00

When you subscribe to an event in .NET, the subscription is added to a

  • 0

When you subscribe to an event in .NET, the subscription is added to a multicast delegate. When the event is fired, the delegates are called in the order they were subscribed.

I’d like to override the subscription somehow, so that the subscriptions are actually fired in the reverse order. Can this be done, and how?

I think something like this might be what I need?:

public event MyReversedEvent
{
    add { /* magic! */ }
    remove { /* magic! */ }
}
  • 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-15T06:13:04+00:00Added an answer on May 15, 2026 at 6:13 am

    Controlling When and If a Delegate Fires Within a Multicast Delegate

    The following method creates a multicast delegate called allInstances and then uses GetInvocationList to allow each delegate to be fired individually, in reverse order:

    public static void InvokeInReverse()
    {
        MyDelegate myDelegateInstance1 = new MyDelegate(TestInvoke.Method1);
        MyDelegate myDelegateInstance2 = new MyDelegate(TestInvoke.Method2);
        MyDelegate myDelegateInstance3 = new MyDelegate(TestInvoke.Method3);
    
        MyDelegate allInstances =
                myDelegateInstance1 +
                myDelegateInstance2 +
                myDelegateInstance3;
    
        Console.WriteLine("Fire delegates in reverse");
        Delegate[] delegateList = allInstances.GetInvocationList();
        for (int counter = delegateList.Length - 1; counter >= 0; counter--)
        {
            ((MyDelegate)delegateList[counter])();
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If you subscribe the .net event with the same subscribe more then once, then
Using PowerShell, it is possible to subscribe to a .NET, WMI or engine event
Is there currently a way to subscribe to an event of a wrapped set,
Is there a way to subscribe to the HttpApplication's BeginRequest event from Global.asax? What
In my class I want to declare an event that other classes can subscribe
I'm writing a topic-based publish/subscribe system in C++. My generic Event class has three
In this case, is it bad to subscribe to the proxy CloseCompleted event? public
Q 1. To my understanding FormsAuthenticationModule is subscribed to AuthenticateRequest event, and thus only
I have a check box and I have subscribed for the CheckedChanged event. The
In my .NET application I am subscribing to events from another class. The subscription

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.