Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 11-11-2009
Member
 
Join Date: Nov 2009
Posts: 58
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.
Reply With Quote
  #2  
Old 11-11-2009
Member
 
Join Date: Jan 2008
Posts: 1,515
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.
Reply With Quote
  #3  
Old 11-11-2009
Member
 
Join Date: Apr 2008
Posts: 1,948
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.
Reply With Quote
  #4  
Old 11-11-2009
Member
 
Join Date: May 2008
Posts: 2,383
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
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "What do you mean by Csharp Delegates?"
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


All times are GMT +5.5. The time now is 11:45 PM.