Table of Contents

Interface IValueProvider

Namespace
Virtufin.Core
Assembly
Virtufin.Core.dll
public interface IValueProvider

Properties

TypeSpecifier

The entities and attributes this provider answers for.

IEntityAttributeValueTypeSpecifier TypeSpecifier { get; }

Property Value

IEntityAttributeValueTypeSpecifier

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

identifier IEntityIdentifier
attribute IAttribute<V>

Returns

V?

Type Parameters

V

Exceptions

AttributeTypeMismatchException

The provider holds the attribute with another value type.