Interface ISupplier<T1, T2, TResult>
Represents functional interface returning arbitrary value and accepting the two arguments.
Inherited Members
Namespace: DotNext
Assembly: DotNext.dll
Syntax
public interface ISupplier<in T1, in T2, out TResult> : IFunctional<Func<T1, T2, TResult>>
Type Parameters
| Name | Description |
|---|---|
| T1 | The type of the first argument. |
| T2 | The type of the second argument. |
| TResult | The type of the result. |
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(T1, T2)
Invokes the supplier.
Declaration
TResult Invoke(T1 arg1, T2 arg2)
Parameters
| Type | Name | Description |
|---|---|---|
| T1 | arg1 | The first argument. |
| T2 | arg2 | The second argument. |
Returns
| Type | Description |
|---|---|
| TResult | The value returned by this supplier. |