Skip to content
DocsTry Aspire
DocsTry

Int32OrStringV1 Constructors

RecordConstructors3 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)
{
// ...
}
}
Numberint?optional
Textstring?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)
{
// ...
}
}
valueintThe integer value to initialize.
Initializes a new instance of the Int32OrStringV1 class with a string value.
public record Int32OrStringV1
{
public Int32OrStringV1(
string? value)
{
// ...
}
}
valuestring?The string value to initialize.