IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
ConsumerExtensions.cs
Go to the documentation of this file.
1using System;
2
3namespace java.util.function
4{
5
6 public static class ConsumerExtensions
7 {
8
15 public static Consumer ToConsumer<TArg>(this Action<TArg> action)
16 {
17 return new DelegateConsumer<TArg>(action);
18 }
19
20 }
21
22}
static Consumer ToConsumer< TArg >(this Action< TArg > action)
Returns a Consumer implementation that invokes the given Action<TArg>.
Implementation of Consumer that sends output to a delegate.