kreta/Kreta.Core/FileService/Configuration/StorageElementCollection.cs
2024-03-13 00:33:46 +01:00

15 lines
551 B
C#

using System.Configuration;
namespace Kreta.Core.FileService.Configuration
{
public class StorageElementCollection : ConfigurationElementCollection
{
protected override string ElementName => nameof(Storage);
protected override ConfigurationElement CreateNewElement() => new Storage();
protected override object GetElementKey(ConfigurationElement element) => ((Storage)element).Key;
public override ConfigurationElementCollectionType CollectionType => ConfigurationElementCollectionType.BasicMap;
}
}