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. General Programming
  3. C#
  4. Multicast Delegate

Multicast Delegate

Scheduled Pinned Locked Moved C#
8 Posts 5 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.
  • M Offline
    M Offline
    Mairaaj Khan
    wrote on last edited by
    #1

    When we use the operator "+=" with delegate, does it denote multicast.

    _____________________________ Success is not something to wait for, its something to work for.

    R B E M 4 Replies Last reply
    0
    • M Mairaaj Khan

      When we use the operator "+=" with delegate, does it denote multicast.

      _____________________________ Success is not something to wait for, its something to work for.

      R Offline
      R Offline
      rah_sin
      wrote on last edited by
      #2

      i think we use "+=" with delegate when we add event handler to any event and call specific method to handel that event through deligate.

      rahul

      M 1 Reply Last reply
      0
      • R rah_sin

        i think we use "+=" with delegate when we add event handler to any event and call specific method to handel that event through deligate.

        rahul

        M Offline
        M Offline
        Mairaaj Khan
        wrote on last edited by
        #3

        rah_sin wrote:

        i think we use "+=" with delegate when we add event handler to any event and call specific method to handel that event through deligate.

        correct. And here is my question, does it denote multicast.

        _____________________________ Success is not something to wait for, its something to work for.

        R 1 Reply Last reply
        0
        • M Mairaaj Khan

          rah_sin wrote:

          i think we use "+=" with delegate when we add event handler to any event and call specific method to handel that event through deligate.

          correct. And here is my question, does it denote multicast.

          _____________________________ Success is not something to wait for, its something to work for.

          R Offline
          R Offline
          rah_sin
          wrote on last edited by
          #4

          no i don't thionk so becouse multicast deligate is link list of deligates.

          rahul

          M 1 Reply Last reply
          0
          • M Mairaaj Khan

            When we use the operator "+=" with delegate, does it denote multicast.

            _____________________________ Success is not something to wait for, its something to work for.

            B Offline
            B Offline
            Bijesh
            wrote on last edited by
            #5

            += is applied on events right? and event delegates are multicast delegates.

            --------------------------------------------------

            1 Reply Last reply
            0
            • M Mairaaj Khan

              When we use the operator "+=" with delegate, does it denote multicast.

              _____________________________ Success is not something to wait for, its something to work for.

              E Offline
              E Offline
              ednrgc
              wrote on last edited by
              #6

              Yes.

              1 Reply Last reply
              0
              • R rah_sin

                no i don't thionk so becouse multicast deligate is link list of deligates.

                rahul

                M Offline
                M Offline
                Mairaaj Khan
                wrote on last edited by
                #7

                rah_sin wrote:

                no i don't thionk so becouse multicast deligate is link list of deligates.

                Events are special kind of delegates, and += are used with events, which means an event may have more than one event handlers. So what i concluded is that += (with events) denotes multicast.

                _____________________________ Success is not something to wait for, its something to work for.

                1 Reply Last reply
                0
                • M Mairaaj Khan

                  When we use the operator "+=" with delegate, does it denote multicast.

                  _____________________________ Success is not something to wait for, its something to work for.

                  M Offline
                  M Offline
                  mertkan65
                  wrote on last edited by
                  #8

                  it denotes but the delegates must return void, for example "public void delegate()"

                  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