Table of Contents

Interface IReadOnlyAttributes<TKey, TValue>

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Contains methods and properties which allow to work with readonly attributes.

public interface IReadOnlyAttributes<TKey, TValue>

Type Parameters

TKey

Type of the attribute identifier. Typically string or int.

TValue

Type of the attribute value.

Properties

this[TKey]

Calls GetAttribute(TKey).

Methods

GetAttribute(TKey)

Gets attribute value. Returns null if there is no such attribute.

GetAttribute<T2>(TKey)

Gets attribute value as TKey type.

GetAttribute<T2>(TKey, T2)

Gets attribute value as T2 type or defaultValue if there is no such attribute.

HasAttribute(TKey)

Attribute with id was added.