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. Multidelegate with a returned value

Multidelegate with a returned value

Scheduled Pinned Locked Moved C#
questiontutorial
2 Posts 2 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
    Ming Luo
    wrote on last edited by
    #1

    Dear All: I am a bit confused about the delegate with a returned value. For example, I have a delegate as:

    public delegate int Adelegate(MyClass instance)

    Like this, what happens to the returned value if I use multi delegate please? Further, if the delegate returns a bool, how can I declare a delegate that output a bool value please? Should I declare it in the parameters or the return value? Thanks

    Asura

    V 1 Reply Last reply
    0
    • M Ming Luo

      Dear All: I am a bit confused about the delegate with a returned value. For example, I have a delegate as:

      public delegate int Adelegate(MyClass instance)

      Like this, what happens to the returned value if I use multi delegate please? Further, if the delegate returns a bool, how can I declare a delegate that output a bool value please? Should I declare it in the parameters or the return value? Thanks

      Asura

      V Offline
      V Offline
      vivasaayi
      wrote on last edited by
      #2

      Hope u can get from the following resources. http://en.csharp-online.net/Delegates_and_Events%E2%80%94Retrieving_Values_from_Multicast_Delegates[^] http://msdn.microsoft.com/en-us/vcsharp/bb508935.aspx[^] Regards

      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