Buy Questpond's video subscriptions on
huge discount
.
Online: 3787
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Forums
>
C#
>
Loading ...
In which scenarios , Delegates are used?
Posted by
Kulprachi84
under
C#
on 3/21/2012 |
Points: 10
| Views : 2223 | Status :
[Member]
| Replies : 4
Write New Post
|
Search Forums
|
Resolved Posts
|
Un Answered Posts
|
Forums Home
In which scenarios , Delegates are used?
Reply
|
Reply with Attachment
Alert Moderator
Responses
Posted by:
Patel28rajendra
on: 3/21/2012
[Member]
Starter
|
Points: 25
0
Hi
see this link
http://stackoverflow.com/questions/2267936/what-are-some-common-scenarios-where-delegates-should-be-used
http://bytes.com/topic/c-sharp/answers/536859-delegates-when-why-besides-events-threads
R D Patel
Kulprachi84
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Sksamantaray
on: 3/21/2012
[Member]
Silver
|
Points: 25
0
Hi,
Refer to:
http://www.worldofasp.net/tut/prjDelegate/Delegates_173.aspx
Thanks,
Sanjay
Kulprachi84
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Rajni.Shekhar
on: 3/21/2012
[Member]
Bronze
|
Points: 25
0
delegates are used when you want to point a function. Actually delegates are function pointers.
You can use delegates with event also.
Thanks,
Rajni Shekhar
Kulprachi84
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Veerac85
on: 3/27/2012
[Member]
Starter
|
Points: 25
0
There are just too many scenarios where we would need delegates
1) You could implement event handling using delegates
2) You could write anonymous methods using delegates
3) You could do asynchronous processing using delegates. Delegates can be used to define callback methods.
4) A class may need more than one implementation of the method.
if you would like to see & try out some examples to learn it's uses completely, you could visit following links
http://technico.qnownow.com/2012/03/27/delegates-in-c/
http://technico.qnownow.com/2012/03/27/event-handling-using-delegates-in-c/
http://technico.qnownow.com/2012/03/27/anonymous-methods-using-delegates-in-c/
http://technico.qnownow.com/2012/03/23/how-to-do-asynchronous-processing-using-delegates-in-c-wpf/
Regards
Veera
Kulprachi84
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Login to post response
Latest Posts
How to get the exact property name while getting error
(0)
PDB file is not showing Line Number in dot net application hosted on server
(0)
Both Strings morethan 5 letters in length end of the words one vowel and one consonent is different
(0)
how to check Any adjacent letters transposed between two strings(ex: JOHN, JHON)
(1)
can't receive data after success login ?
(1)
Implement Multi-Tenant in Azure Logic Apps
(0)
Why ASP.Net Core 7.0 Web API showing as Connection refused?
(0)
Iterating over columns of dataframe and print as rows in Python Django
(0)
More ...