Table of Contents

Class Optional

Namespace
DynamicData.Kernel
Assembly
DynamicData.dll

Optional factory class.

public static class Optional
Inheritance
Optional

Methods

None<T>()

Returns an None optional value for the specified type.

public static Optional<T> None<T>() where T : notnull

Returns

Optional<T>

The optional value.

Type Parameters

T

The type of the item.

Some<T>(T?)

Wraps the specified value in an Optional container.

public static Optional<T> Some<T>(T? value) where T : notnull

Parameters

value T

The value.

Returns

Optional<T>

The optional value.

Type Parameters

T

The type of the item.