Table of Contents

Class Optional

Namespace
Discord
Assembly
Discord.Net.Core.dll
public static class Optional
Inheritance
Optional
Inherited Members

Methods

Create<T>()

public static Optional<T> Create<T>()

Returns

Optional<T>

Type Parameters

T

Create<T>(T)

public static Optional<T> Create<T>(T value)

Parameters

value T

Returns

Optional<T>

Type Parameters

T

ToNullable<T>(Optional<T>)

public static T? ToNullable<T>(this Optional<T> val) where T : struct

Parameters

val Optional<T>

Returns

T?

Type Parameters

T