Show / Hide Table of Contents

Struct ValueSupplier<T>

Represents constant value supplier.

Implements
ISupplier<T>
IFunctional<Func<T>>
Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
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 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

| Edit this page View Source

ToString()

Returns the fully qualified type name of this instance.

Declaration
public override string? ToString()
Returns
Type Description
string

The fully qualified type name.

Overrides
ValueType.ToString()

Operators

| Edit this page 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<TDelegate>

Extension Methods

BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, ReadOnlySpan<T>)
Collection.ToAsyncEnumerator<TEnumerator, T>(TEnumerator, CancellationToken)
Collection.ToClassicEnumerator<TEnumerator, T>(TEnumerator)
Enumerator.Skip<TEnumerator, T>(ref TEnumerator, int)
ExpressionBuilder.Const<T>(T)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾