/// <summary>
 /// Get a value with key of type T, or return the fallback value if no matching key is found.
 /// </summary>
 /// <param name="key">The settings key.</param>
 /// <param name="fallback">If no key with a value of type T is found, this value is returned.</param>
 /// <typeparam name="T">Type of value to search for.</typeparam>
 /// <inheritdoc cref="ISettingsRepository.Get{T}"/>
 public T Get <T>(string key, T fallback = default(T))
 {
     Init();
     return(m_Dictionary.Get <T>(key, fallback));
 }
示例#2
0
        public T Get <T>(string key, T fallback = default)
        {
            Initialize();

            return(_dictionary.Get(key, fallback));
        }