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>$() { // ... }}Deconstruct(int?, string?) Section titled Deconstruct(int?, string?) public record Int32OrStringV1{ public void Deconstruct( out int? Number, out string? Text) { // ... }}Parameters
Number int? Text string? Determines whether the current instance is equal to another integer.
public record Int32OrStringV1{ public bool Equals( int other) { // ... }}Parameters
other int The integer to compare with. Returns
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) { // ... }}Parameters
other string? The string to compare with. Returns
bool True 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
obj object? The object to compare with the current object. Returns
bool true 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
other Int32OrStringV1? An object to compare with this object. Returns
bool true 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
int A 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
left Int32OrStringV1? An instance of Int32OrStringV1. right int The integer instance to check against. Returns
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) { // ... }}Parameters
left Int32OrStringV1? An instance of Int32OrStringV1. right string? The string instance to check against. Returns
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) { // ... }}Parameters
left Int32OrStringV1? right Int32OrStringV1? Gets the value as a 32-bit integer.
public record Int32OrStringV1{ public static explicit operator int( Int32OrStringV1 value) { // ... }}Parameters
value Int32OrStringV1 The value to get. Exceptions
InvalidCastException Thrown 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
value Int32OrStringV1? 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
value int The integer to get. Returns
Int32OrStringV1 An 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
value string? The string to get Returns
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) { // ... }}Parameters
left Int32OrStringV1? An instance of Int32OrStringV1. right int The integer instance to check against. Returns
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) { // ... }}Parameters
left Int32OrStringV1? An instance of Int32OrStringV1. right string? The string instance to check against. Returns
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) { // ... }}Parameters
left Int32OrStringV1? right Int32OrStringV1? Returns a string representation of the current instance.
public record Int32OrStringV1{ public override string? ToString() { // ... }}Returns
string? The string representation of the value.