Abstract Concepts in C# – using Delegates

Many developers, especially beginners, often find it difficult to realize and understand the benefits and advantages of using abstract concepts specific to the C# language, like delegates. C# doesn't help matters by allowing us to declare field-like events which are automatically backed by a de...

Full description

Saved in:
Bibliographic Details
Published inAnalele Universității "Dunărea de Jos" Galați. Fascicula I, Economie și informatica aplicata Vol. 21; no. 2; pp. 134 - 139
Main Author Adrian Lupasc
Format Journal Article
LanguageEnglish
Published Dunarea de Jos University of Galati 01.09.2015
Online AccessGet full text

Cover

Loading…
More Information
Summary:Many developers, especially beginners, often find it difficult to realize and understand the benefits and advantages of using abstract concepts specific to the C# language, like delegates. C# doesn't help matters by allowing us to declare field-like events which are automatically backed by a delegate variable at the same name. Another source of confusion is due to the overloading of the term “delegate”. Sometimes it is used to mean a delegate type, in other cases it can be used to mean an instance of a delegate type. We shall use “delegate type” and “delegate instance” to distinguish between them, and “delegate” when we are talking about the whole topic in a general sense. In this context, the present paper aims to clarify all these aspects related to the use of delegate in the specific context, providing concrete examples in this respect. Moreover, this paper presents the main benefits of using delegates in C# language.
ISSN:1584-0409
1584-0409