Struct ValueSupplier<T>
Represents constant value supplier.
Inherited Members
Namespace: DotNext
Assembly: DotNext.dll
Syntax
public readonly struct ValueSupplier<T> : ISupplier<T>, IFunctional<Func<T>>
Type Parameters
Name | Description |
---|---|
T | The type of the value to supply. |
Remarks
Creates a new wrapper for the value.
Constructors
| Edit this page View SourceValueSupplier(T)
Represents constant value supplier.
Declaration
public ValueSupplier(T value)
Parameters
Type | Name | Description |
---|---|---|
T | value | The value to wrap. |
Remarks
Creates a new wrapper for the value.
Methods
| Edit this page View SourceToString()
Returns the fully qualified type name of this instance.
Declaration
public override string? ToString()
Returns
Type | Description |
---|---|
string | The fully qualified type name. |
Overrides
Operators
| Edit this page View Sourceimplicit operator ValueSupplier<T>(T)
Creates constant value supplier.
Declaration
public static implicit operator ValueSupplier<T>(T value)
Parameters
Type | Name | Description |
---|---|---|
T | value | The value to wrap. |
Returns
Type | Description |
---|---|
ValueSupplier<T> | The wrapper over the value. |