Show / Hide Table of Contents

Struct ValueSupplier<T>

Represents constant value supplier.

Implements
ISupplier<T>
IFunctional
Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
object.GetType()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: DotNext
Assembly: DotNext.dll
Syntax
public readonly struct ValueSupplier<T> : ISupplier<T>, IFunctional
Type Parameters
Name Description
T

The type of the value to supply.

Remarks

Creates a new wrapper for the value.

Constructors

View Source

ValueSupplier(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

View Source

ToString()

Declaration
public override string? ToString()
Returns
Type Description
string
Overrides
ValueType.ToString()

Operators

View Source

implicit 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.

Implements

ISupplier<TResult>
IFunctional

Extension Methods

BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, params ReadOnlySpan<T>)
Enumerator.Skip<TEnumerator, T>(ref TEnumerator, int)
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾