Int32OrStringV1 Methods
RecordMethods18 members
Represents a value that can be either a 32-bit integer or a string.
public record Int32OrStringV1{ public Int32OrStringV1 <Clone>$() { // ... }}Deconstruct(int?, string?)Section titled Deconstruct(int?, string?)public record Int32OrStringV1{ public void Deconstruct( out int? Number, out string? Text) { // ... }}Parameters
Numberint?Textstring? Determines whether the current instance is equal to another integer.
public record Int32OrStringV1{ public bool Equals( int other) { // ... }}Parameters
otherintThe integer to compare with.Returns
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) { // ... }}Parameters
otherstring?The string to compare with.Returns
boolTrue if the current instance is equal to the other string; otherwise, false.Determines whether the specified object is equal to the current object.
public record Int32OrStringV1{ public override bool Equals( object? obj) { // ... }}Parameters
objobject?The object to compare with the current object.Returns
booltrue if the specified object is equal to the current object; otherwise, false.Indicates whether the current object is equal to another object of the same type.
public record Int32OrStringV1{ public bool Equals( Int32OrStringV1? other) { // ... }}Parameters
otherInt32OrStringV1?An object to compare with this object.Returns
booltrue if the current object is equal to the other parameter; otherwise, false.Serves as the default hash function.
public record Int32OrStringV1{ public override int GetHashCode() { // ... }}Returns
intA hash code for the current object. Compares an instance of Int32OrStringV1 to an integer for equality.
public record Int32OrStringV1{ public static bool operator ==( Int32OrStringV1? left, int right) { // ... }}Parameters
leftInt32OrStringV1?An instance of Int32OrStringV1.rightintThe integer instance to check against.Returns
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) { // ... }}Parameters
leftInt32OrStringV1?An instance of Int32OrStringV1.rightstring?The string instance to check against.Returns
boola boolean value indicating whether the two instances are equal.op_Equality(Int32OrStringV1?, Int32OrStringV1?)Section titled op_Equality(Int32OrStringV1?, Int32OrStringV1?)staticboolpublic record Int32OrStringV1{ public static bool operator ==( Int32OrStringV1? left, Int32OrStringV1? right) { // ... }}Parameters
leftInt32OrStringV1?rightInt32OrStringV1? Gets the value as a 32-bit integer.
public record Int32OrStringV1{ public static explicit operator int( Int32OrStringV1 value) { // ... }}Parameters
valueInt32OrStringV1The value to get.Exceptions
InvalidCastExceptionThrown if the value isn't a valid integer. Gets the value as a string.
public record Int32OrStringV1{ public static explicit operator string?( Int32OrStringV1? value) { // ... }}Parameters
valueInt32OrStringV1?The value to get.Returns
string?The value as a string. Gets the integer value as a Int32OrStringV1 instance.
public record Int32OrStringV1{ public static implicit operator Int32OrStringV1( int value) { // ... }}Parameters
valueintThe integer to get.Returns
Int32OrStringV1An Int32OrStringV1 instance representing the integer value. Gets the string value as a Int32OrStringV1 instance.
public record Int32OrStringV1{ public static implicit operator Int32OrStringV1?( string? value) { // ... }}Parameters
valuestring?The string to getReturns
Int32OrStringV1?An Int32OrStringV1 instance representing the string value. Compares an instance of Int32OrStringV1 to an integer for equality.
public record Int32OrStringV1{ public static bool operator !=( Int32OrStringV1? left, int right) { // ... }}Parameters
leftInt32OrStringV1?An instance of Int32OrStringV1.rightintThe integer instance to check against.Returns
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) { // ... }}Parameters
leftInt32OrStringV1?An instance of Int32OrStringV1.rightstring?The string instance to check against.Returns
boola boolean value indicating whether the two instances are not equal.op_Inequality(Int32OrStringV1?, Int32OrStringV1?)Section titled op_Inequality(Int32OrStringV1?, Int32OrStringV1?)staticboolpublic record Int32OrStringV1{ public static bool operator !=( Int32OrStringV1? left, Int32OrStringV1? right) { // ... }}Parameters
leftInt32OrStringV1?rightInt32OrStringV1? Returns a string representation of the current instance.
public record Int32OrStringV1{ public override string? ToString() { // ... }}Returns
string?The string representation of the value.