понедельник, 26 марта 2012 г.

все течет, все меняется

In the 1970s Brian Kernighan and Dennis Ritchie brought us function pointers in C (see Listing 5.1). A function is referenced by an address, which is just a number, after all. Function pointers led to the notion of events—really just function pointers—and event handlers. Event handlers evolved into delegates and multicast delegates in .NET (see Listing 5.2). (Remember, fundamentally, we are still talking about function pointers under the hood but with nicer window treatments.) Delegates were compressed into anonymous delegates in .NET 2.0. Anonymous delegates lost some weight by eliminating the function name, return type, and parameter types (shown in Listing 5.3), and anonymous expressions
have evolved into Lambda Expressions in Listing 5.4.

Комментариев нет:

Отправить комментарий