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

  • Home
  • SEARCH
  • 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 7604237
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T23:51:36+00:00 2026-05-30T23:51:36+00:00

I have a static class with a custom event in it, as below: //The

  • 0

I have a static class with a custom event in it, as below:

    //The delegate
    public static delegate void eventDoneDelegate(object sender, WebLoaderEventArgs e);

    //The event that uses the delegate
    public static event eventDoneDelegate PageRequestDone;

    //Calls the event
    private static void onPageRequestDoneChanged(WebLoaderEventArgs e)
    {
        if (PageRequestDone != null)
            PageRequestDone(this, e);
    }

I know “this” can’t be used because it references the current instance, but how can I pass the currect class as a parameter?

Or maybe my logic is wrong, please aware me as I am new to this.

Thanks.

  • 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-30T23:51:37+00:00Added an answer on May 30, 2026 at 11:51 pm

    The semantic meaning of the sender argument value depends on a vague agreement between the event publisher and the event subscribers; there is no universal standard. In your example, I can’t see any need for a sender value at all, you might as well pass null.

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

Sidebar

Related Questions

I have a custom event class public class FFTDrawEvent extends Event { public static
I have a static class that I would like to raise an event as
So I have a static class that is supposed to be used as a
I have a static field in a non static class. public class DBtools {
i am having a strange problem, i have a static class like this public
I have a public static class in which I would like to have a
I have a static util class that does some string manipulation on a bit
I have a library object ( SomethingMC ) which extends a custom class (
What I have is a class with static properties that I want to use
I have a custom class named BlinkingLight. I also have a static ObservableCollection BlinkingLightCollection.

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.