This commit is contained in:
TheXamlGuy
2024-05-28 17:30:40 +01:00
parent dd913b8f20
commit 338be9b328
2 changed files with 5 additions and 1 deletions
@@ -9,4 +9,6 @@ public class ConfigurationDescriptor<TConfiguration>(string section,
public TConfiguration Value => reader.Read(); public TConfiguration Value => reader.Read();
public string Section => section; public string Section => section;
public string Name => section.Split(':').LastOrDefault() ?? section;
} }
@@ -4,7 +4,9 @@ public interface IConfigurationDescriptor<out TConfiguration>
where TConfiguration : where TConfiguration :
class class
{ {
TConfiguration Value { get; } string Name { get; }
string Section { get; } string Section { get; }
TConfiguration Value { get; }
} }