Class DateOnlyInfo
This class contains metadata about a Primitively IDateOnly type.
Inherited Members
Namespace: Primitively
Assembly: Primitively.Abstractions.dll
Syntax
public sealed record DateOnlyInfo : PrimitiveInfo, IEquatable<PrimitiveInfo>, IEquatable<DateOnlyInfo>
Constructors
DateOnlyInfo(Type, string?, Func<string?, IPrimitive>, string, int)
This class contains metadata about a Primitively IDateOnly type.
Declaration
public DateOnlyInfo(Type Type, string? Example, Func<string?, IPrimitive> CreateFrom, string Format, int Length)
Parameters
Type | Name | Description |
---|---|---|
Type | Type | The .NET type of the Primitively type. |
string | Example | An optional example of the date. |
Func<string, IPrimitive> | CreateFrom | A function that creates an instance of the Primitively type from a string. |
string | Format | The format of the date. |
int | Length | The length of the date. |
Properties
Format
The format of the date.
Declaration
public string Format { get; init; }
Property Value
Type | Description |
---|---|
string |
Length
The length of the date.
Declaration
public int Length { get; init; }
Property Value
Type | Description |
---|---|
int |