Skip to content
Docs Try Aspire

Int32OrStringV1 Constructors

Record Constructors 3 members
Represents a value that can be either a 32-bit integer or a string.
Represents a value that can be either a 32-bit integer or a string.
public record Int32OrStringV1
{
public Int32OrStringV1(
int? Number = null,
string? Text = null)
{
// ...
}
}
Number int? optional
Text string? optional
This class provides functionality to handle values that could be either an integer or a string. It supports implicit and explicit conversions, equality comparisons, and YAML serialization/deserialization handling.
Initializes a new instance of the Int32OrStringV1 class with a 32-bit integer value.
public record Int32OrStringV1
{
public Int32OrStringV1(
int value)
{
// ...
}
}
value int The integer value to initialize.
Initializes a new instance of the Int32OrStringV1 class with a string value.
public record Int32OrStringV1
{
public Int32OrStringV1(
string? value)
{
// ...
}
}
value string? The string value to initialize.