Table of Contents

Class DataProviderElementCollection<T>

Namespace
BiExcellence.OpenBi.Api.DataProviders
Assembly
BiExcellence.OpenBi.Api.Client.dll

A list of definition elements that can also be reached by id - definition.Dimensions["COUNTRY"]. Serializes as a plain JSON array.

public sealed class DataProviderElementCollection<T> : Collection<T> where T : DataProviderElement

Type Parameters

T

The element kind.

Inheritance
object
Collection<T>
DataProviderElementCollection<T>

Constructors

DataProviderElementCollection()

Creates an empty collection.

public DataProviderElementCollection()

DataProviderElementCollection(IEnumerable<T>)

Creates a collection over the given elements.

public DataProviderElementCollection(IEnumerable<T> elements)

Parameters

elements IEnumerable<T>

Properties

this[string?]

The element with this id, or null where there is none. A null id finds an element without one.

public T? this[string? id] { get; }

Parameters

id string

Property Value

T

Methods

Contains(string)

True where an element with this id is in the collection.

public bool Contains(string id)

Parameters

id string

Returns

bool

Remove(string)

Removes the element with this id, if it is there.

public bool Remove(string id)

Parameters

id string

Returns

bool

TryGetValue(string, out T)

Looks the element with this id up.

public bool TryGetValue(string id, out T value)

Parameters

id string
value T

Returns

bool