Table of Contents

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

Constructors

ElementCollectionBase()

protected ElementCollectionBase()

Properties

this[int]

Gets element from collection by its index.

public T this[int index] { get; }

Parameters

index int

Element 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 string

Element name.

Property Value

T

Element or null, if element with such name is not found.

Methods

CreateNewElement()

protected override ConfigurationElement CreateNewElement()

Returns

ConfigurationElement

GetElementKey(ConfigurationElement)

protected override sealed object GetElementKey(ConfigurationElement element)

Parameters

element ConfigurationElement

Returns

object

GetElementKey(T)

protected abstract object GetElementKey(T element)

Parameters

element T

Returns

object