SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 67 | Next

Scott Klein

"Professional LINQ"

The reason to avoid creating
extension methods is that you might run into the scenario where the implementation of the type will
cause your extension method to break. That??™s not good.
If you must implement extension methods, keep in mind the following:
??‘ If you define an extension method with the same signature as an existing method defined in the
type, your extension method will never be called.
??‘ Extension methods are brought into scope at the namespace level.
Lambda Expressions
Lambda expressions and anonymous methods are similar, except for the fact that lambda expressions are
much more flexible and provide a more succinct syntax than anonymous methods.
In LINQ, you run into lambda expressions when making a direct query call to the standard query
operators. Lambda expressions can be used in LINQ to create the delegates that will be invoked when
28
Chapter 2: A Look at Visual Studio 2008
the query is executed later. When writing LINQ queries and calling standard query operators directly,
you only need to use method syntax to write lambda expressions.


Pages:
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6