TriLib
Search Results for

    Show / Hide Table of Contents

    Class DictionaryExtensions

    Represents a series of Dictionary extension methods.

    Inheritance
    object
    DictionaryExtensions
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: TriLibCore.Extensions
    Assembly: TriLibCore.dll
    Syntax
    public static class DictionaryExtensions

    Methods

    TryGetValueSafe<TKey, TValue>(IDictionary<TKey, TValue>, TKey, out TValue)

    Tries to get a value in the given Dictionary without throwing Exceptions.

    Declaration
    public static bool TryGetValueSafe<TKey, TValue>(this IDictionary<TKey, TValue> dictionary, TKey key, out TValue value)
    Parameters
    Type Name Description
    IDictionary<TKey, TValue> dictionary

    The Dictionary.

    TKey key

    The Dictionary key.

    TValue value

    The Dictionary value.

    Returns
    Type Description
    bool

    true if the given Key is found. Otherwise, false.

    Type Parameters
    Name Description
    TKey

    The Dictionary Key type.

    TValue

    The Dictionary Value type.

    In this article
    Back to top Generated by DocFX