<PackageReference Include="System.Configuration.ConfigurationManager" Version="8.0.0-rc.2.23479.6" />

SourceElementsCollection

using System.Configuration; namespace System.Diagnostics { [ConfigurationCollection(typeof(SourceElement), AddItemName = "source", CollectionType = ConfigurationElementCollectionType.BasicMap)] internal sealed class SourceElementsCollection : ConfigurationElementCollection { public new SourceElement this[string name] { get { return (SourceElement)BaseGet(name); } } protected override string ElementName => "source"; public override ConfigurationElementCollectionType CollectionType => ConfigurationElementCollectionType.BasicMap; protected override ConfigurationElement CreateNewElement() { SourceElement sourceElement = new SourceElement(); sourceElement.Listeners.InitializeDefaultInternal(); return sourceElement; } protected override object GetElementKey(ConfigurationElement element) { return ((SourceElement)element).Name; } } }