namespace PkmnLib.Static.Utils; /// /// Helpers for working with dictionaries. /// public static class DictionaryHelpers { /// /// Gets the value for a key in a dictionary, or returns a default value if the key is not found. /// public static TValue GetOrDefault(this IDictionary dictionary, TKey key, TValue defaultValue) => dictionary.TryGetValue(key, out var value) ? value : defaultValue; }