CrazyEngineers
  • What is the use of Delegates

    dayanandavt

    Member

    Updated: Oct 26, 2024
    Views: 1.1K
    Hi all,

    Wat will be the use of delegates other than asynchronus execution of a function.........????


    - daya
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • thin_master

    MemberMay 30, 2007

    The use is in the name itself. A delegate is used to delegate some job.

    A scenario.

    You want to read serial port data and show it in in a form. You have a function to read the data, but that function has got no access to the form. So you code a delegate that has access to that form and give the painting job to that delegate function.

    This is a scenario that I faced.
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register