Interface IValueProvider
public interface IValueProvider
Properties
TypeSpecifier
The entities and attributes this provider answers for.
IEntityAttributeValueTypeSpecifier TypeSpecifier { get; }
Property Value
Methods
GetValue<V>(IEntityIdentifier, IAttribute<V>)
The value of the entity's attribute, or null when there is none.
V? GetValue<V>(IEntityIdentifier identifier, IAttribute<V> attribute) where V : struct
Parameters
identifierIEntityIdentifierattributeIAttribute<V>
Returns
- V?
Type Parameters
V
Exceptions
- AttributeTypeMismatchException
The provider holds the attribute with another value type.