Facebook
Twitter
Pinterest
Tumblr
GitHub
RSS
  • DEV Home
  • Documentation
  • Reference
  • Download
Search Results for

    Show / Hide Table of Contents

    Class CollectionExtensions

    Inheritance
    System.Object
    CollectionExtensions
    Namespace: Emby.Media.Common.Extensions
    Assembly: Emby.Media.Model.dll
    Syntax
    public static class CollectionExtensions

    Methods

    GetValueOrDefault<TKey, TValue>(IReadOnlyDictionary<TKey, TValue>, TKey)

    Declaration
    public static TValue GetValueOrDefault<TKey, TValue>(this IReadOnlyDictionary<TKey, TValue> dictionary, TKey key)
    Parameters
    Type Name Description
    System.Collections.Generic.IReadOnlyDictionary<TKey, TValue> dictionary
    TKey key
    Returns
    Type Description
    TValue
    Type Parameters
    Name Description
    TKey
    TValue

    GetValueOrDefault<TKey, TValue>(IReadOnlyDictionary<TKey, TValue>, TKey, TValue)

    Declaration
    public static TValue GetValueOrDefault<TKey, TValue>(this IReadOnlyDictionary<TKey, TValue> dictionary, TKey key, TValue defaultValue)
    Parameters
    Type Name Description
    System.Collections.Generic.IReadOnlyDictionary<TKey, TValue> dictionary
    TKey key
    TValue defaultValue
    Returns
    Type Description
    TValue
    Type Parameters
    Name Description
    TKey
    TValue

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

    Declaration
    public static bool Remove<TKey, TValue>(this IDictionary<TKey, TValue> dictionary, TKey key, out TValue value)
    Parameters
    Type Name Description
    System.Collections.Generic.IDictionary<TKey, TValue> dictionary
    TKey key
    TValue value
    Returns
    Type Description
    System.Boolean
    Type Parameters
    Name Description
    TKey
    TValue

    TryAdd<TKey, TValue>(IDictionary<TKey, TValue>, TKey, TValue)

    Declaration
    public static bool TryAdd<TKey, TValue>(this IDictionary<TKey, TValue> dictionary, TKey key, TValue value)
    Parameters
    Type Name Description
    System.Collections.Generic.IDictionary<TKey, TValue> dictionary
    TKey key
    TValue value
    Returns
    Type Description
    System.Boolean
    Type Parameters
    Name Description
    TKey
    TValue
    SDK
    On this Page
    Back to Top Copyright 2022 © EMBY LLC. Please see our terms of use and privacy policy.