Represents implementation of IConsumer<T> interface with the support of closure that is not allocated on the heap.
Namespace: DotNext Assembly: DotNext.dll Syntax[CLSCompliant(false)]
public readonly struct ConsumerClosure<TContext, T> : IConsumer<T>, IFunctional<Action<T>>
Type Parameters Name Description TContext
The type describing closure.
TThe type of the consumer argument.
Constructors | Edit this page View Source ConsumerClosure(delegate*<in TContext, T, void>, TContext)Represents implementation of IConsumer<T> interface with the support of closure that is not allocated on the heap.
Declarationpublic ConsumerClosure(delegate*<in TContext, T, void> ptr, TContext context)
Parameters Type Name Description delegate*<in TContext, T, void> ptr
The function pointer.
TContext contextThe context to be passed to the function pointer.
Exceptions Properties | Edit this page View Source IsEmptyGets a value indicating that this function pointer is zero.
Declarationpublic bool IsEmpty { get; }
Property Value Exceptions Implements Extension Methods
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4