|
|
![]() |
| Thread Tools | Search this Thread |
#1
| |||
| |||
What do you mean by Csharp Delegates? I have been assigned a project to completed using Csharp. I have earlier learnt C++ and HTML, but I have recently started to study Csharp. Although new but I am finding it very interesting to study. I want help on Csharp Delegates. What do you really mean by Delegates in Csharp? Provide a valid description on it. |
#2
| |||
| |||
Re: What do you mean by Csharp Delegates? Csharp Delegates is a type-safe object that is used to reference a method. It can be used to reference one or many methods. These methods might be invoked afterwards. The Delegates mimics the method to which it is assigned. Since it can have a return value and parameter list it is possible to use it just like an ordinary Csharp method. Csharp is really a good programming language to learn and is the language used mostly for .Net framework. |
#3
| |||
| |||
Re: What do you mean by Csharp Delegates? Delegates introduced by C# are provided with the power to refer to a method as if it was a parameter. Thus, delegates are used in defining methods with callbacks. C++ function pointers and C# delegates are very much like each other except for that C# delegates are type-safe. In .Net framework, delegate types are actually been derived out from the delegate class. |
#4
| |||
| |||
Re: What do you mean by Csharp Delegates? At the time when an event is triggered the delegate informs Csharp about the method to be called. It can be said the it is an element in Csharp that permits you make a method that can be referenced. The Event handling in Csharp is formed on the foundation of Delegates. A delegate instance can have references to more than a single method also. They are the function-pointers in Csharp. Thus a C, C++ programmer is not deprieved of function-pointers in Csharp.
__________________ The FIFA Manager 2009 PC Game |
![]() |
|
Tags: c sharp, csharp, delegates, programming language |
Thread Tools | Search this Thread |
|
![]() | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to do Asynchronous Programming with Delegates? | AAeruJa | Software Development | 5 | 04-02-2011 12:48 PM |
What is the difference between Events and Delegates in C#? | Whos*Daksha | Software Development | 4 | 26-12-2010 12:36 AM |
Use of delegates in C sharp | opaper | Software Development | 5 | 25-01-2010 01:44 PM |
What is the difference between delegates and interfaces? | Rum | Software Development | 5 | 22-01-2010 02:00 PM |
Multicast delegates of C sharp | Truster | Software Development | 5 | 21-01-2010 11:03 AM |