Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Weird and The Wonderful
  4. RaiseCustomEvent

RaiseCustomEvent

Scheduled Pinned Locked Moved The Weird and The Wonderful
csharptutorialdotnetcomquestion
7 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bernhard Hiller
    wrote on last edited by
    #1

    "'Raise<ActualName>Event' ... Why do you use such a strange name for an event?" "I follow Microsoft Guidelines. They use such naming. I found it on their website." "If you happen to find that page again, please send me a link." Joseph did not hesitate. He opened Google, entered some search terms, looked at some results. "Here it is: How to: Publish Events that Conform to .NET Framework Guidelines (C# Programming Guide)[^]". And really, that's what Microsoft did in that article:

    Microsoft wrote:

    public event EventHandler<CustomEventArgs> RaiseCustomEvent;

    And then Joseph thought that's how events ought to be named: start with "Raise", add the actual name, then add "Event"... Thank you, Microsoft.

    S J R 3 Replies Last reply
    0
    • B Bernhard Hiller

      "'Raise<ActualName>Event' ... Why do you use such a strange name for an event?" "I follow Microsoft Guidelines. They use such naming. I found it on their website." "If you happen to find that page again, please send me a link." Joseph did not hesitate. He opened Google, entered some search terms, looked at some results. "Here it is: How to: Publish Events that Conform to .NET Framework Guidelines (C# Programming Guide)[^]". And really, that's what Microsoft did in that article:

      Microsoft wrote:

      public event EventHandler<CustomEventArgs> RaiseCustomEvent;

      And then Joseph thought that's how events ought to be named: start with "Raise", add the actual name, then add "Event"... Thank you, Microsoft.

      S Offline
      S Offline
      Sascha Lefevre
      wrote on last edited by
      #2

      Let's hope he never looks into the .NET source or else he might come up with many more fantastic MS naming "conventions" :laugh:

      If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson

      1 Reply Last reply
      0
      • B Bernhard Hiller

        "'Raise<ActualName>Event' ... Why do you use such a strange name for an event?" "I follow Microsoft Guidelines. They use such naming. I found it on their website." "If you happen to find that page again, please send me a link." Joseph did not hesitate. He opened Google, entered some search terms, looked at some results. "Here it is: How to: Publish Events that Conform to .NET Framework Guidelines (C# Programming Guide)[^]". And really, that's what Microsoft did in that article:

        Microsoft wrote:

        public event EventHandler<CustomEventArgs> RaiseCustomEvent;

        And then Joseph thought that's how events ought to be named: start with "Raise", add the actual name, then add "Event"... Thank you, Microsoft.

        J Offline
        J Offline
        Jorgen Andersson
        wrote on last edited by
        #3

        How does he name his classes and methods? Show him this[^].

        Wrong is evil and must be defeated. - Jeff Ello

        P 1 Reply Last reply
        0
        • J Jorgen Andersson

          How does he name his classes and methods? Show him this[^].

          Wrong is evil and must be defeated. - Jeff Ello

          P Offline
          P Offline
          Peter_in_2780
          wrote on last edited by
          #4

          Jörgen Andersson wrote:

          Show him this[^].

          The one that says Server Error in '/' Application. would it be? Cheers, Peter

          Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012

          J Richard DeemingR 2 Replies Last reply
          0
          • P Peter_in_2780

            Jörgen Andersson wrote:

            Show him this[^].

            The one that says Server Error in '/' Application. would it be? Cheers, Peter

            Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012

            J Offline
            J Offline
            Jorgen Andersson
            wrote on last edited by
            #5

            The irony.

            Wrong is evil and must be defeated. - Jeff Ello

            1 Reply Last reply
            0
            • P Peter_in_2780

              Jörgen Andersson wrote:

              Show him this[^].

              The one that says Server Error in '/' Application. would it be? Cheers, Peter

              Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012

              Richard DeemingR Offline
              Richard DeemingR Offline
              Richard Deeming
              wrote on last edited by
              #6

              Try without the trailing . in the URL: Names of Type Members[^]


              "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

              "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

              1 Reply Last reply
              0
              • B Bernhard Hiller

                "'Raise<ActualName>Event' ... Why do you use such a strange name for an event?" "I follow Microsoft Guidelines. They use such naming. I found it on their website." "If you happen to find that page again, please send me a link." Joseph did not hesitate. He opened Google, entered some search terms, looked at some results. "Here it is: How to: Publish Events that Conform to .NET Framework Guidelines (C# Programming Guide)[^]". And really, that's what Microsoft did in that article:

                Microsoft wrote:

                public event EventHandler<CustomEventArgs> RaiseCustomEvent;

                And then Joseph thought that's how events ought to be named: start with "Raise", add the actual name, then add "Event"... Thank you, Microsoft.

                R Offline
                R Offline
                Rob Grainger
                wrote on last edited by
                #7

                No, its totally correct - he's defining an event that is raised when a custom event is raised; totally legit ;-)

                "If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups