public static TValue Get()

in Darabonba/Utils/Extensions.cs [151:165]


        public static TValue Get<TKey, TValue>(this Dictionary<TKey, TValue> dict, TKey key,
            TValue defaultValue = default(TValue))
        {
            if (dict == null)
            {
                return default(TValue);
            }

            if (key == null)
            {
                return defaultValue;
            }

            return dict.ContainsKey(key) ? dict[key] : defaultValue;
        }