C# 9.0 Pocket Reference by Joseph Albahari
Author:Joseph Albahari
Language: eng
Format: epub
Publisher: O'Reilly Media
Published: 2021-01-20T00:00:00+00:00
Anonymous Methods
Anonymous methods are a C# 2.0 feature that has been mostly subsumed by lambda expressions. An anonymous method is like a lambda expression except that it lacks implicitly typed parameters, expression syntax (an anonymous method must always be a statement block), and the ability to compile to an expression tree. To write an anonymous method, you include the delegate keyword followed (optionally) by a parameter declaration and then a method body. For example:
Transformer sqr = delegate (int x) {return x * x;}; Console.WriteLine (sqr(3)); // 9 delegate int Transformer (int i);
The first line is semantically equivalent to the following lambda expression:
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Exploring Deepfakes by Bryan Lyon and Matt Tora(7706)
Robo-Advisor with Python by Aki Ranin(7606)
Offensive Shellcode from Scratch by Rishalin Pillay(6093)
Microsoft 365 and SharePoint Online Cookbook by Gaurav Mahajan Sudeep Ghatak Nate Chamberlain Scott Brewster(5000)
Ego Is the Enemy by Ryan Holiday(4954)
Management Strategies for the Cloud Revolution: How Cloud Computing Is Transforming Business and Why You Can't Afford to Be Left Behind by Charles Babcock(4438)
Python for ArcGIS Pro by Silas Toms Bill Parker(4172)
Elevating React Web Development with Gatsby by Samuel Larsen-Disney(3874)
Machine Learning at Scale with H2O by Gregory Keys | David Whiting(3610)
Learning C# by Developing Games with Unity 2021 by Harrison Ferrone(3284)
Speed Up Your Python with Rust by Maxwell Flitton(3231)
Liar's Poker by Michael Lewis(3220)
OPNsense Beginner to Professional by Julio Cesar Bueno de Camargo(3194)
Extreme DAX by Michiel Rozema & Henk Vlootman(3169)
Agile Security Operations by Hinne Hettema(3122)
Linux Command Line and Shell Scripting Techniques by Vedran Dakic and Jasmin Redzepagic(3108)
Essential Cryptography for JavaScript Developers by Alessandro Segala(3081)
Cryptography Algorithms by Massimo Bertaccini(3001)
AI-Powered Commerce by Andy Pandharikar & Frederik Bussler(2981)
