Skip to content
DocsTry Aspire
DocsTry

Int32OrStringV1 Methods

RecordMethods18 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)
{
// ...
}
}
Numberint?
Textstring?
Determines whether the current instance is equal to another integer.
public record Int32OrStringV1
{
public bool Equals(
int other)
{
// ...
}
}
otherintThe integer to compare with.
boolTrue 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)
{
// ...
}
}
otherstring?The string to compare with.
boolTrue if the current instance is equal to the other string; otherwise, false.
Equals(object?)Section titled Equals(object?)overridebool
Determines whether the specified object is equal to the current object.
public record Int32OrStringV1
{
public override bool Equals(
object? obj)
{
// ...
}
}
objobject?The object to compare with the current object.
booltrue 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)
{
// ...
}
}
otherInt32OrStringV1?An object to compare with this object.
booltrue if the current object is equal to the other parameter; otherwise, false.
GetHashCodeSection titled GetHashCodeoverrideint
Serves as the default hash function.
public record Int32OrStringV1
{
public override int GetHashCode()
{
// ...
}
}
intA hash code for the current object.
op_Equality(Int32OrStringV1?, int)Section titled op_Equality(Int32OrStringV1?, int)staticbool
Compares an instance of Int32OrStringV1 to an integer for equality.
public record Int32OrStringV1
{
public static bool operator ==(
Int32OrStringV1? left,
int right)
{
// ...
}
}
leftInt32OrStringV1?An instance of Int32OrStringV1.
rightintThe integer instance to check against.
boola boolean value indicating whether the two instances are equal.
op_Equality(Int32OrStringV1?, string?)Section titled op_Equality(Int32OrStringV1?, string?)staticbool
Compares an instance of Int32OrStringV1 to a string for equality.
public record Int32OrStringV1
{
public static bool operator ==(
Int32OrStringV1? left,
string? right)
{
// ...
}
}
leftInt32OrStringV1?An instance of Int32OrStringV1.
rightstring?The string instance to check against.
boola boolean value indicating whether the two instances are equal.
op_Equality(Int32OrStringV1?, Int32OrStringV1?)Section titled op_Equality(Int32OrStringV1?, Int32OrStringV1?)staticbool
public record Int32OrStringV1
{
public static bool operator ==(
Int32OrStringV1? left,
Int32OrStringV1? right)
{
// ...
}
}
op_Explicit(Int32OrStringV1)Section titled op_Explicit(Int32OrStringV1)staticint
Gets the value as a 32-bit integer.
public record Int32OrStringV1
{
public static explicit operator int(
Int32OrStringV1 value)
{
// ...
}
}
valueInt32OrStringV1The value to get.
InvalidCastExceptionThrown if the value isn't a valid integer.
op_Explicit(Int32OrStringV1?)Section titled op_Explicit(Int32OrStringV1?)staticnullablestring?
Gets the value as a string.
public record Int32OrStringV1
{
public static explicit operator string?(
Int32OrStringV1? value)
{
// ...
}
}
valueInt32OrStringV1?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)
{
// ...
}
}
valueintThe integer to get.
Int32OrStringV1An Int32OrStringV1 instance representing the integer value.
op_Implicit(string?)Section titled op_Implicit(string?)staticnullableInt32OrStringV1?
Gets the string value as a Int32OrStringV1 instance.
public record Int32OrStringV1
{
public static implicit operator Int32OrStringV1?(
string? value)
{
// ...
}
}
valuestring?The string to get
Int32OrStringV1?An Int32OrStringV1 instance representing the string value.
op_Inequality(Int32OrStringV1?, int)Section titled op_Inequality(Int32OrStringV1?, int)staticbool
Compares an instance of Int32OrStringV1 to an integer for equality.
public record Int32OrStringV1
{
public static bool operator !=(
Int32OrStringV1? left,
int right)
{
// ...
}
}
leftInt32OrStringV1?An instance of Int32OrStringV1.
rightintThe integer instance to check against.
boola boolean value indicating whether the two instances are not equal.
op_Inequality(Int32OrStringV1?, string?)Section titled op_Inequality(Int32OrStringV1?, string?)staticbool
Compares an instance of Int32OrStringV1 to a string for equality.
public record Int32OrStringV1
{
public static bool operator !=(
Int32OrStringV1? left,
string? right)
{
// ...
}
}
leftInt32OrStringV1?An instance of Int32OrStringV1.
rightstring?The string instance to check against.
boola boolean value indicating whether the two instances are not equal.
op_Inequality(Int32OrStringV1?, Int32OrStringV1?)Section titled op_Inequality(Int32OrStringV1?, Int32OrStringV1?)staticbool
public record Int32OrStringV1
{
public static bool operator !=(
Int32OrStringV1? left,
Int32OrStringV1? right)
{
// ...
}
}
ToStringSection titled ToStringoverridenullablestring?
Returns a string representation of the current instance.
public record Int32OrStringV1
{
public override string? ToString()
{
// ...
}
}
string?The string representation of the value.