Table of Contents

Interface IEntityAttributeValueTypeSpecifier

Namespace
Virtufin.Core
Assembly
Virtufin.Core.dll

As C# doesn't support dependent types, we cannot define a class which is given by generic constraints to the values of the entities, attributes and values in terms of some (value) depedent type at compile time. We have to check the test if a entity/attribute/value triplet belongs to a particular class to runtime via a type membbrship predicate, IsTypeMember<V>(IEntityIdentifier, IAttribute<V>, V) instead

public interface IEntityAttributeValueTypeSpecifier

Methods

IsTypeMemberForAnyValue<V>(IEntityIdentifier, IAttribute<V>)

bool IsTypeMemberForAnyValue<V>(IEntityIdentifier entityIdentifier, IAttribute<V> attribute) where V : struct

Parameters

entityIdentifier IEntityIdentifier
attribute IAttribute<V>

Returns

bool

Type Parameters

V

IsTypeMember<V>(IEntityIdentifier, IAttribute<V>, V)

bool IsTypeMember<V>(IEntityIdentifier entityIdentifier, IAttribute<V> attribute, V value) where V : struct

Parameters

entityIdentifier IEntityIdentifier
attribute IAttribute<V>
value V

Returns

bool

Type Parameters

V