Class MaybeDictionaryExtensions
Provides extensions to
Inheritance
System.Object
MaybeDictionaryExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: MaybeSharp.Extensions
Assembly: cs.temp.dll.dll
Syntax
public static class MaybeDictionaryExtensions
Methods
Name | Description |
---|---|
TryGetValue<TKey, TValue>(IDictionary<TKey, TValue>, TKey) | Attempts to retrieve a value with the sepcified key from the given collection and returns the result as a Maybe<T>. If the key is not found, an empty maybe is returned. |