Commentaires Récents
19.10.2008
Cela ne fonctionne pas!!!! Ou alors par exemple...
Par : tony

30.07.2008
Va voir ca mec, c'est le MOD de BF2 ultime avec...
Par : Jean-Sébastien

06.10.2007
En fait tu n'as qu'a utiliser le gestionaire...
Par : Carl-Hugo Marcotte

24.09.2007
C'est cool ta source j'ai réussi a faire 3...
Par : Nicolas

j'ai mis à jour le lien...
Par : Carl-Hugo Marcotte

Nom d'utilisateur :

Mot de passe :


 
Anonymous Methods in C#

Anonymous Methods in C#

The introduction of anonymous methods in C# 2.0 gives developers the ability to efficiently design code that makes use of delegates in callback situations. Prior to this language enhancement, a developer would have to define a separate method when needing to execute a callback using a delegate. Indeed, while not having to define a separate method to execute callbacks is certainly a nicety, that reason alone does not fully qualify the value of a new language feature such as anonymous methods. As we will see in the Web Resource Information Reader sample, the real benefit of anonymous methods can be seen in the flexibility it offers developers by allowing them to execute callbacks, synchronously or asynchronously, within its containing method code. When using anonymous methods, a developer can still reference local variables scoped for the containing method from within the anonymous method definition. Let's get started by showing how anonymous method in C# 2.0 has changed the way code can be written for callback situations.
 
Nom :
Couriel :
URL :
Commentaire :