Thursday, September 14, 2017

anonymous methods in C# can be used with actions

Consistent with using an anonymous method with a Func you may also use them with an Action.

(string whatever)=>{}

 
 

...will play nicely in being assigned to:

Action<string>

No comments:

Post a Comment