aspclassic-core/AspClassic.Scripting/Hosting/Configuration/LanguageElementCollection.cs
Jelle Luteijn 484dbfc9d9 progress
2022-05-15 11:19:49 +02:00

22 lines
602 B
C#

using System.Configuration;
namespace AspClassic.Scripting.Hosting.Configuration;
public class LanguageElementCollection : ConfigurationElementCollection
{
public override ConfigurationElementCollectionType CollectionType => ConfigurationElementCollectionType.BasicMap;
protected override bool ThrowOnDuplicate => false;
protected override string ElementName => "language";
protected override ConfigurationElement CreateNewElement()
{
return new LanguageElement();
}
protected override object GetElementKey(ConfigurationElement element)
{
return ((LanguageElement)element).Type;
}
}