Skip to main content
Version: 0.3.x (0.3.0)

Namespace AdCodicem.ValueObjects.Annotations

Classes​

KnownValueAttribute

Marks a static member of a value object as one of its known values.

NotDefaultAttribute

Requires a value-object member not to hold the instance equal to default(TSelf), which lets through, since a struct is never null.

ParsesAsAttribute<TSelf, TValue>

Requires text to be accepted by a value object named at compile time, through its static members, with no registry.

ParsesAsAttribute

Requires text to be accepted by a value object, and reports the message and the code of the rule that refuses it.

ValueObjectAttribute<TValue>

Marks a readonly partial struct as a single-value value object and drives code generation for it.

ValueObjectValidationResult

The result DataAnnotations reports a refusal of or with, carrying the code of the rule and the value object type beside the message.

ValueObjectXmlSerializationAttribute

Opts every value object of the assembly into XML serialization: the generator implements and a schema provider on each of them.

Enums​

ValueSetKind

Whether a value object accepts arbitrary valid values or only an enumerated set.