| | | 1 | | // Licensed to the .NET Foundation under one or more agreements. |
| | | 2 | | // The .NET Foundation licenses this file to you under the MIT license. |
| | | 3 | | |
| | | 4 | | using System; |
| | | 5 | | using System.Collections; |
| | | 6 | | using System.Configuration; |
| | | 7 | | |
| | | 8 | | namespace CoreWCF.Configuration |
| | | 9 | | { |
| | | 10 | | public abstract class ServiceModelConfigurationElementCollection<TConfigurationElementType> : ConfigurationElementCo |
| | | 11 | | where TConfigurationElementType : ConfigurationElement, new() |
| | | 12 | | { |
| | | 13 | | internal ServiceModelConfigurationElementCollection() |
| | 2 | 14 | | : this(ConfigurationElementCollectionType.AddRemoveClearMap, null) |
| | 2 | 15 | | { } |
| | | 16 | | |
| | 251 | 17 | | internal ServiceModelConfigurationElementCollection(ConfigurationElementCollectionType collectionType, |
| | 251 | 18 | | string elementName) |
| | | 19 | | { |
| | 251 | 20 | | if (!String.IsNullOrEmpty(elementName)) |
| | | 21 | | { |
| | 249 | 22 | | AddElementName = elementName; |
| | | 23 | | } |
| | 251 | 24 | | } |
| | | 25 | | |
| | | 26 | | internal ServiceModelConfigurationElementCollection(ConfigurationElementCollectionType collectionType, |
| | 0 | 27 | | string elementName, IComparer comparer) : base(comparer) |
| | | 28 | | { |
| | 0 | 29 | | } |
| | | 30 | | |
| | | 31 | | protected override ConfigurationElement CreateNewElement() |
| | | 32 | | { |
| | 44 | 33 | | return new TConfigurationElementType(); |
| | | 34 | | } |
| | | 35 | | } |
| | | 36 | | } |