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. Web Development
  3. ASP.NET
  4. when we use delegates?

when we use delegates?

Scheduled Pinned Locked Moved ASP.NET
helpquestion
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.
  • A Offline
    A Offline
    anoop_m83
    wrote on last edited by
    #1

    1: When we use delegates? 2: Can I use delegates methods as normal methods? Please help me..

    P 1 Reply Last reply
    0
    • A anoop_m83

      1: When we use delegates? 2: Can I use delegates methods as normal methods? Please help me..

      P Offline
      P Offline
      Pravin Patil Mumbai
      wrote on last edited by
      #2

      Use a delegate when: 1. An eventing design pattern is used. 2. It is desirable to encapsulate a static method. 3. The caller has no need access other properties, methods, or interfaces on the object implementing the method. 4. Easy composition is desired. 5. A class may need more than one implementation of the method and it will be decided at runtime as to which method to call. Delegates are also used when call back functionality is to be implemented : Refer http://www.knowdotnet.com/articles/delegatesreplaceraiseevents.html[^] Hope this helps. All the best.

      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