Show / Hide Table of Contents

Delegate TryGetValue<TKey, TValue>

Delegate that represents a fallible attempt to get a value associated with a given key.

Namespace: RustyOptions
Assembly: RustyOptions.dll
Syntax
public delegate bool TryGetValue<TKey, TValue>(TKey key, out TValue? value)
Parameters
Type Name Description
TKey key

The key to retrieve the corresponding value for.

TValue value

The value retrieved, if any.

Returns
Type Description
bool

true if the value was retrieved, otherwise false.

Type Parameters
Name Description
TKey

The type of the key.

TValue

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