Func
indicates the delegate type. This form
of
Func
specifies two parameters of type
int
and a return type of
bool
. This is the form of
Func
that is compatible with the lambda expression used in the program because that
expression requires two parameters. Other lambda expressions may require different forms
of
Func
, based on the number of parameters they require. In general, the specific form of
Func
must match the requirements of the lambda expression.
Exte
nsion Methods
As mentioned earlier, extension methods provide a means by which functionality can be
added to a class without using the normal inheritance mechanism. Although you won’t
often create your own extension methods (because the inheritance mechanism offers a
www.freepdf-books.com
Do'stlaringiz bilan baham: |