Interface IEntityAttributeValueTypeSpecifier
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
entityIdentifierIEntityIdentifierattributeIAttribute<V>
Returns
Type Parameters
V
IsTypeMember<V>(IEntityIdentifier, IAttribute<V>, V)
bool IsTypeMember<V>(IEntityIdentifier entityIdentifier, IAttribute<V> attribute, V value) where V : struct
Parameters
entityIdentifierIEntityIdentifierattributeIAttribute<V>valueV
Returns
Type Parameters
V