Explores two lesser-known lambda techniques in C#: discarding parameters using the underscore pattern `(_, _)` with Func and Action delegates, and satisfying a Func definition with a method whose parameter types don't match by leveraging the lambda as an intermediary. Includes concrete code examples showing how a `Func<string, string>` can wrap a method that takes integers, because the lambda itself handles the type contract.

4m read timeFrom nodogmablog.bryanhogan.net
Post cover image
Table of contents
Discarding Lambda ParametersMismatching the Func Definition and the Method that Satisfies it