Skip to content

Fix for CS8714 add where T : notnull #250

@JohanLarsson

Description

@JohanLarsson
    public static class PooledDictionary
    {
        /// <summary>
        /// Borrow a dictionary, dispose returns it.
        /// </summary>
        /// <typeparam name="TKey">The type of keys.</typeparam>
        /// <typeparam name="TValue">The type of values.</typeparam>
        /// <returns>A <see cref="PooledDictionary{TKey,TValue}"/>.</returns>
        public static PooledDictionary<TKey, TValue> Borrow<TKey, TValue>() => PooledDictionary<TKey, TValue>.Borrow();
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions