= () => is really a closure, and yet I wrote the following awful, stupid blog posting yesterday...
This suggests that (input parameters) => expression is the basic shape of any Lambda. Therefore...
= () =>...may be used in creating an anonymous method of sorts to assign a value to a Func like so:
public static Func<DateTime> Now = () => DateTime.UtcNow;
No comments:
Post a Comment