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
T
Element type.
- Inheritance
-
ElementCollectionBase<T>
- Implements
- Derived
- Inherited Members
- Extension Methods
Properties
this[int]
Gets element from collection by its index.
public T this[int index] { get; }
Parameters
index
intElement index.
Property Value
- T
Element at specified index.
this[string]
Gets element from collection by its name.
public T this[string name] { get; }
Parameters
name
stringElement name.
Property Value
- T
Element or null, if element with such name is not found.
Methods
CreateNewElement()
When overridden in a derived class, creates a new ConfigurationElement.
protected override ConfigurationElement CreateNewElement()
Returns
GetElementKey(ConfigurationElement)
Gets the element key for a specified configuration element when overridden in a derived class.
protected override sealed object GetElementKey(ConfigurationElement element)
Parameters
element
ConfigurationElementThe ConfigurationElement to return the key for.
Returns
- object
An object that acts as the key for the specified ConfigurationElement.
GetElementKey(T)
protected abstract object GetElementKey(T element)
Parameters
element
T