Interface IReadOnlyAttributes<TKey, TValue>
Contains methods and properties which allow to work with readonly attributes.
public interface IReadOnlyAttributes<TKey, TValue>
Type Parameters
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 ordefaultValue
if there is no such attribute.
- HasAttribute(TKey)
Attribute with
id
was added.