Interface IConsumer<T>
Represents functional interface returning no value and accepting the single argument.
Inherited Members
Namespace: DotNext
Assembly: DotNext.dll
Syntax
public interface IConsumer<in T> : IFunctional<Action<T>>
Type Parameters
Name | Description |
---|---|
T | The type of the argument. |
Remarks
Functional interface can be used to pass some application logic without heap allocation in contrast to regular delegates. Additionally, implementation of functional interface may have encapsulated data acting as closure which is not allocated on the heap.
Methods
| Edit this page View SourceInvoke(T)
Invokes the consumer.
Declaration
void Invoke(T arg)
Parameters
Type | Name | Description |
---|---|---|
T | arg | The first argument. |