internal static void TryAdd()

in src/Core/Extensions/DictionaryExtensions.cs [21:32]


        internal static void TryAdd<TKey, TValue>(
            this Dictionary<TKey, TValue> dictionary,
            IEnumerable<KeyValuePair<TKey, TValue>> defaults)
        {
            if (defaults != null)
            {
                foreach (var (key, value) in defaults)
                {
                    dictionary.Add(key, value);
                }
            }
        }