Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
When use a delegate?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
Cirene  
View profile   Translate to Translated (View Original)
 More options 10 Apr 2008, 23:54
Newsgroups: microsoft.public.dotnet.framework.aspnet
From: "Cirene" <cir...@nowhere.com>
Date: Thu, 10 Apr 2008 18:54:19 -0400
Local: Thurs 10 Apr 2008 23:54
Subject: When use a delegate?
When would you choose to use a delegate rather than calling a function
directly?  What's the advantages?  Thanks...

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cowboy (Gregory A. Beamer)  
View profile   Translate to Translated (View Original)
 More options 11 Apr 2008, 00:11
Newsgroups: microsoft.public.dotnet.framework.aspnet
From: "Cowboy \(Gregory A. Beamer\)" <NoSpamMgbwo...@comcast.netNoSpamM>
Date: Thu, 10 Apr 2008 18:11:05 -0500
Local: Fri 11 Apr 2008 00:11
Subject: Re: When use a delegate?
One prime example is events.

Another is when you have to run more than one "function" when a specific
action happens.

Another is when you have a library that has to make a callback to the
calling application, but you do not know what the event name is at the time
you create the library.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

*************************************************
| Think outside the box!
|
*************************************************

"Cirene" <cir...@nowhere.com> wrote in message

news:eeT9P31mIHA.4208@TK2MSFTNGP02.phx.gbl...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott M.  
View profile   Translate to Translated (View Original)
 More options 11 Apr 2008, 00:22
Newsgroups: microsoft.public.dotnet.framework.aspnet
From: "Scott M." <s...@nospam.nospam>
Date: Thu, 10 Apr 2008 19:22:18 -0400
Local: Fri 11 Apr 2008 00:22
Subject: Re: When use a delegate?
Sometimes you don't know what function you're going to want to call, only
its signature.  Delegates allow you that flexibility.

"Cirene" <cir...@nowhere.com> wrote in message

news:eeT9P31mIHA.4208@TK2MSFTNGP02.phx.gbl...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jordan S.  
View profile   Translate to Translated (View Original)
 More options 11 Apr 2008, 00:33
Newsgroups: microsoft.public.dotnet.framework.aspnet
From: "Jordan S." <A...@B.com>
Date: Thu, 10 Apr 2008 16:33:25 -0700
Local: Fri 11 Apr 2008 00:33
Subject: Re: When use a delegate?
"Cirene" <cir...@nowhere.com> wrote in message

news:eeT9P31mIHA.4208@TK2MSFTNGP02.phx.gbl...

> When would you choose to use a delegate rather than calling a function
> directly?  What's the advantages?  Thanks...

Here is a link to a good article that presents an introduction to
delegates - to the extent that delegates are relevant to events.

http://www.codeproject.com/KB/cs/event_fundamentals.aspx#3.2WhyDelega...

While the article is about events, one must have a good understanding of
delegates in order to really understand events in C#. So much of the article
addresses delegates.

-HTH


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cirene  
View profile   Translate to Translated (View Original)
 More options 11 Apr 2008, 03:17
Newsgroups: microsoft.public.dotnet.framework.aspnet
From: "Cirene" <cir...@nowhere.com>
Date: Thu, 10 Apr 2008 22:17:11 -0400
Local: Fri 11 Apr 2008 03:17
Subject: Re: When use a delegate?
Thanks Cowboy, Scott, Jordan and everyone else.  You guys are awesome...

"Cowboy (Gregory A. Beamer)" <NoSpamMgbwo...@comcast.netNoSpamM> wrote in
message news:u95hmA2mIHA.2304@TK2MSFTNGP05.phx.gbl...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google