Class NumericInfo<T>
This class represents metadata properties common to all source generated Primitively numeric types.
Inheritance
object
NumericInfo<T>
Inherited Members
Namespace: Primitively
Assembly: Primitively.Abstractions.dll
Syntax
public abstract record NumericInfo<T> : PrimitiveInfo, IEquatable<PrimitiveInfo>, INumericInfo, IEquatable<NumericInfo<T>>
Type Parameters
Name | Description |
---|---|
T |
Constructors
NumericInfo(DataType, Type, string?, Func<string?, IPrimitive>, T, T)
This class represents metadata properties common to all source generated Primitively numeric types.
Declaration
protected NumericInfo(DataType DataType, Type Type, string? Example, Func<string?, IPrimitive> CreateFrom, T Minimum, T Maximum)
Parameters
Type | Name | Description |
---|---|---|
DataType | DataType | The DataType enum representation of the Primitively type. |
Type | Type | The .NET type of the Primitively type. |
string | Example | An optional example of the integer. |
Func<string, IPrimitive> | CreateFrom | A function that creates an instance of the Primitively type from a string. |
T | Minimum | The minimum value that can be set on the source generated Primitively type. |
T | Maximum | The maximum value that can be set on the source generated Primitively type. |
Properties
Maximum
The maximum value that can be set on the source generated Primitively type.
Declaration
public T Maximum { get; init; }
Property Value
Type | Description |
---|---|
T |
Minimum
The minimum value that can be set on the source generated Primitively type.
Declaration
public T Minimum { get; init; }
Property Value
Type | Description |
---|---|
T |