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