feat: added default valueless Get to IConfiguration for nullables

This commit is contained in:
2026-03-31 17:21:18 +03:00
parent fe0173b091
commit c11aced8d2
2 changed files with 6 additions and 4 deletions

View File

@@ -15,7 +15,8 @@ public interface IConfiguration
bool Has(string key);
object? Get(string key);
T? Get<T>(string key, T? defaultValue = default);
T Get<T>(string key, T defaultValue);
T? Get<T>(string key);
void Set<T>(string key, T value);
void Remove<T>(string key);