Ejemplo n.º 1
0
 /// <summary>
 /// Access one of the existing settings. If the setting has not been added yet, null is returned.
 /// If the setting exists but has a different type than T, an exception is thrown.
 /// New settings should be added with <see cref="Bind{T}(BepInEx.Configuration.ConfigDefinition,T,BepInEx.Configuration.ConfigDescription)"/>.
 /// </summary>
 /// <typeparam name="T">Type of the value contained in this setting.</typeparam>
 /// <param name="section">Section/category/group of the setting. Settings are grouped by this.</param>
 /// <param name="key">Name of the setting.</param>
 /// <param name="entry">The ConfigEntry value to return.</param>
 public bool TryGetEntry <T>(string section, string key, out ConfigEntry <T> entry)
 {
     return(TryGetEntry <T>(new ConfigDefinition(section, key), out entry));
 }