|
| static Consumer | ToConsumer< TArg > (this Action< TArg > action) |
| | Returns a Consumer implementation that invokes the given Action<TArg>.
|
| |
Definition at line 6 of file ConsumerExtensions.cs.
◆ ToConsumer< TArg >()
| static Consumer java.util.function.ConsumerExtensions.ToConsumer< TArg > |
( |
this Action< TArg > | action | ) |
|
|
static |
Returns a Consumer implementation that invokes the given Action<TArg>.
- Template Parameters
-
- Parameters
-
- Returns
Definition at line 15 of file ConsumerExtensions.cs.
16 {
17 return new DelegateConsumer<TArg>(action);
18 }
The documentation for this class was generated from the following file: