Struct SupplierClosure<TContext, T1, T2, TResult>
Represents implementation of ISupplier<T, TResult> interface with the support of closure that is not allocated on the heap.
Inherited Members
Namespace: DotNext
Assembly: DotNext.dll
Syntax
[CLSCompliant(false)]
public readonly struct SupplierClosure<TContext, T1, T2, TResult> : ISupplier<T1, T2, TResult>, IFunctional<Func<T1, T2, TResult>>
Type Parameters
| Name | Description |
|---|---|
| TContext | The type describing closure. |
| T1 | The type of the first argument. |
| T2 | The type of the second argument. |
| TResult | The type of the result. |
Remarks
Wraps the function pointer.
Constructors
| Edit this page View SourceSupplierClosure(TContext, delegate*<in TContext, T1, T2, TResult>)
Represents implementation of ISupplier<T, TResult> interface with the support of closure that is not allocated on the heap.
Declaration
public SupplierClosure(TContext context, delegate*<in TContext, T1, T2, TResult> ptr)
Parameters
| Type | Name | Description |
|---|---|---|
| TContext | context | The context to be passed to the function pointer. |
| delegate*<in TContext, T1, T2, TResult> | ptr | The function pointer. |
Remarks
Wraps the function pointer.
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
|
Properties
| Edit this page View SourceIsEmpty
Gets a value indicating that this function pointer is zero.
Declaration
public bool IsEmpty { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
|