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
nullif there is no such attribute.
- GetAttribute<T2>(TKey)
Gets attribute value as
TKeytype.
- GetAttribute<T2>(TKey, T2)
Gets attribute value as
T2type ordefaultValueif there is no such attribute.
- HasAttribute(TKey)
Attribute with
idwas added.