Talk:Delegate (CLI)

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
WikiProject iconMicrosoft: .NET Start‑class
WikiProject iconThis article is within the scope of WikiProject Microsoft, a collaborative effort to improve the coverage of articles relating to Microsoft on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
StartThis article has been rated as Start-class on Wikipedia's content assessment scale.
???This article has not yet received a rating on the project's importance scale.
Taskforce icon
This article is supported by WikiProject .NET (assessed as Low-importance).

More information…[edit]

I promise to add more to this in the future, including examples. I searched all over and could not find any explanation of delegates in Wikipedia. They are a major part of .NET and C#, and therefore deserve at least some explanation.

TheMuuj 03:18, 18 May 2006 (UTC)[reply]

Not specific to .NET[edit]

The concept of delegates, and it's support in programming languages, predates the .NET framework.

Yes, that's what I think too. That .NET merely implements this idea that has been around since earlier. In that case, this article should probably be moved to something like delegate (computer science), and have that information included. -- Northgrove 12:47, 20 April 2007 (UTC)[reply]

The rather poorly named facility referred to here as "delegate" is what is more generally known as a function or routine type. This concept dates back as least as far as Algol 60. Unfortunately, the term delegate is easy to confuse with "delegation" which refers to the implementation of a class using the facilities already provided by another class.

Indeed not specific to .NET, I just added an example in Java using PerfectJPattern. —Preceding unsigned comment added by Bravegag (talkcontribs) 12:01, 30 November 2007 (UTC) I agree. The title of the article makes no sense, especially with examples written in Java. —Preceding unsigned comment added by 66.250.5.238 (talk) 16:10, 6 December 2007 (UTC)[reply]

Function/routine types are not neccesarily the same as delegates and whilst a function type that implements the same mechanisms may be called a delegate not all function types do. The concept is an old one, but what makes a degate a delegate is the fact that it is .net type safe, I believe that the term has come into being through .net and as such is specific to .net Retrospectively applying the term to older languages and implementatons may be helpful in cases where similar mechanisms are used, however this should not just include the ability to call another function using a reference or pointer. I agree that examples in C# or VB.net would be more helpful.

—Preceding unsigned comment added by 83.105.33.7 (talk) 18:38, 28 January 2008 (UTC)[reply] 


Broken link to Sun Microsystem's whitepaper[edit]

One of the links at the bottom of this article has been broken for over a year.

The link titled "Sun's White Paper on Delegates" (http://java.sun.com/docs/white/delegates.html) results in an HTTP 302 error and redirects do Oracle's Java Technetwork page.

The last working snapshot of this document on the Internet Archive is from June 27, 2012. Since at least that time this document is nowhere to be found on any of Oracle's web properties.

Is it proper Wikipedia etiquette to link to resources hosted on the Internet Archive?

External links modified[edit]

Hello fellow Wikipedians,

I have just modified one external link on Delegate (CLI). Please take a moment to review my edit. If you have any questions, or need the bot to ignore the links, or the page altogether, please visit this simple FaQ for additional information. I made the following changes:

When you have finished reviewing my changes, please set the checked parameter below to true or failed to let others know (documentation at {{Sourcecheck}}).

This message was posted before February 2018. After February 2018, "External links modified" talk page sections are no longer generated or monitored by InternetArchiveBot. No special action is required regarding these talk page notices, other than regular verification using the archive tool instructions below. Editors have permission to delete these "External links modified" talk page sections if they want to de-clutter talk pages, but see the RfC before doing mass systematic removals. This message is updated dynamically through the template {{source check}} (last update: 18 January 2022).

  • If you have discovered URLs which were erroneously considered dead by the bot, you can report them with this tool.
  • If you found an error with any archives or the URLs themselves, you can fix them with this tool.

Cheers.—InternetArchiveBot (Report bug) 17:45, 16 July 2016 (UTC)[reply]

Remove information on Multicast Delegates[edit]

Although delegates provide a syntactic abstraction for chaining delegates, creating a multicast delegate, it is not really related to the concept of delegates as they are generally used in C# or Visual Basic. — Preceding unsigned comment added by 71.120.177.54 (talk) 17:58, 3 September 2016 (UTC)[reply]