Interface IEntityIdVisitor<TResult>
Namespace: AdCodicem.ValueObjects.Identifiers
Assembly: AdCodicem.ValueObjects.Identifiers.dll
Receives the type of an entity identifier that a caller knows only by its descriptor, so that the caller closes its own generic code over it at compile time.
public interface IEntityIdVisitor<out TResult>
Type Parameters
TResult
What the visitor hands back: the adapter it built, a flag.
Remarks
new MyGenerator<TId>(),
where
Methods
Visit<TId>()
Receives the type of the identifier.
TResult Visit<TId>() where TId : struct, IEntityId<TId>
Returns
TResult
What the visitor builds for the identifier.
Type Parameters
TId
The identifier type.