Show / Hide Table of Contents

Delegate TryGet<T>

Delegate that represents a fallible attempt to get a value of a given type.

Namespace: RustyOptions
Assembly: RustyOptions.dll
Syntax
public delegate bool TryGet<T>(out T? value)
Parameters
Type Name Description
T value

The value retrieved, if any.

Returns
Type Description
bool

true if the value was retrieved, otherwise false.

Type Parameters
Name Description
T

The type of value to get.

Extension Methods

OptionExtensions.AsOption<T>(T?)
OptionExtensions.None<T>(T)
OptionExtensions.Some<T>(T)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX