Re: When to use delegates



jon-boy wrote:
Hi there,

More of a general question, rather than an issue.

Basically, I'm wondering where and when I should be using delegates in
my applications? I obviously use events, so do use them, but I've
never once declared my own delegates in code.

So, am I missing out on something good? I understand them in theory,
but every example I see on the internet is trivial and stupid - I just
can't relate these to real-world business problems that I face and
seemingly manage to solve without them.

Can anyone give a good run down of them and any potential areas in my
designs that I should look to use them?

If there's a C question in here somewhere, it's eluded me.
Perhaps you want comp.programming? Or maybe a forum devoted to
the particular design framework you're fond of?

--
Eric.Sosman@xxxxxxx
.



Relevant Pages

  • When to use delegates
    ... More of a general question, ... my applications? ... never once declared my own delegates in code. ... designs that I should look to use them? ...
    (comp.lang.c)
  • Re: When to use delegates
    ... More of a general question, ... never once declared my own delegates in code. ... PFNGLCREATEPROGRAMPROC pglCreateProgram; ... PFNGLDELETEPROGRAMPROC pglDeleteProgram; ...
    (comp.lang.c)
  • Re: When to use delegates
    ... my applications? ... never once declared my own delegates in code. ... Design patterns are a large component in the dumbing down of ... r-t/e context a few years back. ...
    (comp.lang.c)
  • event/delegate question - newbie
    ... I am familiar with using events and delegates in an application. ... working on a new project in work where I have two applications that are ... I am unfamiliar ... point me to an article or some sample code somewhere that might give me ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: When to use delegates?
    ... want to apply a delegate to this scenario or not. ... The code you shows creates four delegates from ... Your most frequent usage of delegates would be when implementing events in ... your applications. ...
    (microsoft.public.dotnet.languages.csharp)