Skip to content
Docs Try Aspire

Int32OrStringV1 Methods

Record Methods 18 members
Represents a value that can be either a 32-bit integer or a string.
public record Int32OrStringV1
{
public Int32OrStringV1 <Clone>$()
{
// ...
}
}
public record Int32OrStringV1
{
public void Deconstruct(
out int? Number,
out string? Text)
{
// ...
}
}
Number int?
Text string?
Determines whether the current instance is equal to another integer.
public record Int32OrStringV1
{
public bool Equals(
int other)
{
// ...
}
}
other int The integer to compare with.
bool True if the current instance is equal to the other integer; otherwise, false.
Determines whether the current instance is equal to another string.
public record Int32OrStringV1
{
public bool Equals(
string? other)
{
// ...
}
}
other string? The string to compare with.
bool True if the current instance is equal to the other string; otherwise, false.
Equals(object?) Section titled Equals(object?) override bool
Determines whether the specified object is equal to the current object.
public record Int32OrStringV1
{
public override bool Equals(
object? obj)
{
// ...
}
}
obj object? The object to compare with the current object.
bool true if the specified object is equal to the current object; otherwise, false.
Equals(Int32OrStringV1?) Section titled Equals(Int32OrStringV1?) bool
Indicates whether the current object is equal to another object of the same type.
public record Int32OrStringV1
{
public bool Equals(
Int32OrStringV1? other)
{
// ...
}
}
other Int32OrStringV1? An object to compare with this object.
bool true if the current object is equal to the other parameter; otherwise, false.
GetHashCode Section titled GetHashCode override int
Serves as the default hash function.
public record Int32OrStringV1
{
public override int GetHashCode()
{
// ...
}
}
int A hash code for the current object.
op_Equality(Int32OrStringV1?, int) Section titled op_Equality(Int32OrStringV1?, int) static bool
Compares an instance of Int32OrStringV1 to an integer for equality.
public record Int32OrStringV1
{
public static bool operator ==(
Int32OrStringV1? left,
int right)
{
// ...
}
}
left Int32OrStringV1? An instance of Int32OrStringV1.
right int The integer instance to check against.
bool a boolean value indicating whether the two instances are equal.
op_Equality(Int32OrStringV1?, string?) Section titled op_Equality(Int32OrStringV1?, string?) static bool
Compares an instance of Int32OrStringV1 to a string for equality.
public record Int32OrStringV1
{
public static bool operator ==(
Int32OrStringV1? left,
string? right)
{
// ...
}
}
left Int32OrStringV1? An instance of Int32OrStringV1.
right string? The string instance to check against.
bool a boolean value indicating whether the two instances are equal.
op_Equality(Int32OrStringV1?, Int32OrStringV1?) Section titled op_Equality(Int32OrStringV1?, Int32OrStringV1?) static bool
public record Int32OrStringV1
{
public static bool operator ==(
Int32OrStringV1? left,
Int32OrStringV1? right)
{
// ...
}
}
op_Explicit(Int32OrStringV1) Section titled op_Explicit(Int32OrStringV1) static int
Gets the value as a 32-bit integer.
public record Int32OrStringV1
{
public static explicit operator int(
Int32OrStringV1 value)
{
// ...
}
}
value Int32OrStringV1 The value to get.
InvalidCastException Thrown if the value isn't a valid integer.
op_Explicit(Int32OrStringV1?) Section titled op_Explicit(Int32OrStringV1?) staticnullable string?
Gets the value as a string.
public record Int32OrStringV1
{
public static explicit operator string?(
Int32OrStringV1? value)
{
// ...
}
}
value Int32OrStringV1? The value to get.
string? The value as a string.
Gets the integer value as a Int32OrStringV1 instance.
public record Int32OrStringV1
{
public static implicit operator Int32OrStringV1(
int value)
{
// ...
}
}
value int The integer to get.
Int32OrStringV1 An Int32OrStringV1 instance representing the integer value.
op_Implicit(string?) Section titled op_Implicit(string?) staticnullable Int32OrStringV1?
Gets the string value as a Int32OrStringV1 instance.
public record Int32OrStringV1
{
public static implicit operator Int32OrStringV1?(
string? value)
{
// ...
}
}
value string? The string to get
Int32OrStringV1? An Int32OrStringV1 instance representing the string value.
op_Inequality(Int32OrStringV1?, int) Section titled op_Inequality(Int32OrStringV1?, int) static bool
Compares an instance of Int32OrStringV1 to an integer for equality.
public record Int32OrStringV1
{
public static bool operator !=(
Int32OrStringV1? left,
int right)
{
// ...
}
}
left Int32OrStringV1? An instance of Int32OrStringV1.
right int The integer instance to check against.
bool a boolean value indicating whether the two instances are not equal.
op_Inequality(Int32OrStringV1?, string?) Section titled op_Inequality(Int32OrStringV1?, string?) static bool
Compares an instance of Int32OrStringV1 to a string for equality.
public record Int32OrStringV1
{
public static bool operator !=(
Int32OrStringV1? left,
string? right)
{
// ...
}
}
left Int32OrStringV1? An instance of Int32OrStringV1.
right string? The string instance to check against.
bool a boolean value indicating whether the two instances are not equal.
op_Inequality(Int32OrStringV1?, Int32OrStringV1?) Section titled op_Inequality(Int32OrStringV1?, Int32OrStringV1?) static bool
public record Int32OrStringV1
{
public static bool operator !=(
Int32OrStringV1? left,
Int32OrStringV1? right)
{
// ...
}
}
ToString Section titled ToString overridenullable string?
Returns a string representation of the current instance.
public record Int32OrStringV1
{
public override string? ToString()
{
// ...
}
}
string? The string representation of the value.