Class DateOnlyAttribute
This attribute should be used on a partial record struct
to source generate
a Primitively IDateOnly type that encapsulates a date value in ISO 8601 YYYY-MM-DD format.
Inherited Members
Namespace: Primitively
Assembly: Primitively.Abstractions.dll
Syntax
[AttributeUsage(AttributeTargets.Struct, Inherited = false, AllowMultiple = false)]
public sealed class DateOnlyAttribute : PrimitiveAttribute
Examples
This example shows how to use the DateOnly attribute to source generate a Primitively IDateOnly type.
[DateOnly]
public partial record struct Example;