Class ElementCollectionBase<T>
- Namespace
- LinqToDB.Configuration
- Assembly
- linq2db.dll
Collection of configuration section elements.
public abstract class ElementCollectionBase<T> : ConfigurationElementCollection, ICollection, IEnumerable where T : ConfigurationElement, new()
Type Parameters
TElement type.
- Inheritance
-
ElementCollectionBase<T>
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
ElementCollectionBase()
protected ElementCollectionBase()
Properties
this[int]
Gets element from collection by its index.
public T this[int index] { get; }
Parameters
indexintElement index.
Property Value
- T
Element at specified index.
this[string]
Gets element from collection by its name.
public T this[string name] { get; }
Parameters
namestringElement name.
Property Value
- T
Element or null, if element with such name is not found.
Methods
CreateNewElement()
protected override ConfigurationElement CreateNewElement()
Returns
GetElementKey(ConfigurationElement)
protected override sealed object GetElementKey(ConfigurationElement element)
Parameters
elementConfigurationElement
Returns
GetElementKey(T)
protected abstract object GetElementKey(T element)
Parameters
elementT