C# 7.0 Pocket Reference: Instant Help for C# 7.0 Programmers by Joseph Albahari & Ben Albahari

C# 7.0 Pocket Reference: Instant Help for C# 7.0 Programmers by Joseph Albahari & Ben Albahari

Author:Joseph Albahari & Ben Albahari [Albahari, Joseph]
Language: eng
Format: azw3
Publisher: O'Reilly Media
Published: 2017-07-03T04:00:00+00:00


public interface IFoo { event EventHandler Ev; } class Foo : IFoo { EventHandler ev; event EventHandler IFoo.Ev { add { ev += value; } remove { ev -= value; } } }

Lambda Expressions

A lambda expression is an unnamed method written in place of a delegate instance. The compiler immediately converts the lambda expression to one of the following:

A delegate instance.

An expression tree, of type Expression<TDelegate>, representing the code inside the lambda expression in a traversable object model. This allows the lambda expression to be interpreted later at runtime (we describe the process in Chapter 8 of C# 7.0 in a Nutshell).



Download



Copyright Disclaimer:
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.