Results 1 to 4 of 4

Thread: What do you mean by Csharp Delegates?

  1. #1
    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.

  2. #2
    Join Date
    Jan 2008
    Posts
    1,521

    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. #3
    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.

  4. #4
    Join Date
    May 2008
    Posts
    2,389

    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.

Similar Threads

  1. How to do Asynchronous Programming with Delegates?
    By AAeruJa in forum Software Development
    Replies: 5
    Last Post: 04-02-2011, 12:48 PM
  2. What is the difference between Events and Delegates in C#?
    By Whos*Daksha in forum Software Development
    Replies: 4
    Last Post: 26-12-2010, 12:36 AM
  3. Use of delegates in C sharp
    By opaper in forum Software Development
    Replies: 5
    Last Post: 25-01-2010, 01:44 PM
  4. What is the difference between delegates and interfaces?
    By Rum in forum Software Development
    Replies: 5
    Last Post: 22-01-2010, 02:00 PM
  5. Multicast delegates of C sharp
    By Truster in forum Software Development
    Replies: 5
    Last Post: 21-01-2010, 11:03 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,560,803.01487 seconds with 16 queries