BooleanOrDoubleOrString Struct
The (boolean or unrestricted double or DOMString) union of the hidden IDL attribute.
public readonly struct BooleanOrDoubleOrString : IEquatable<BooleanOrDoubleOrString>- Implements
Properties
| Name | Description |
|---|---|
| Value | Gets the value: a Boolean, a Double or a String. |
Value
Mixins.csMethods
| Name | Description |
|---|---|
| Equals(BooleanOrDoubleOrString) | Indicates whether the current object is equal to another object of the same type. |
| Equals(object?) | Indicates whether this instance and a specified object are equal. |
| FromBoolean(bool) | Creates a union value holding the given boolean. |
| FromDouble(double) | Creates a union value holding the given number. |
| FromString(string) | Creates a union value holding the given string. |
| GetHashCode() | Returns the hash code for this instance. |
| ToString() | Returns the fully qualified type name of this instance. |
Equals overloads
Equals(BooleanOrDoubleOrString)
Mixins.csIndicates whether the current object is equal to another object of the same type.
public bool Equals(BooleanOrDoubleOrString other)Parameters
otherBooleanOrDoubleOrString- An object to compare with this object.
Returns
bool true if the current object is equal to the other parameter; otherwise, false.
Equals(object?)
Mixins.csFromBoolean(bool)
Mixins.csCreates a union value holding the given boolean.
public static BooleanOrDoubleOrString FromBoolean(bool value)FromDouble(double)
Mixins.csCreates a union value holding the given number.
public static BooleanOrDoubleOrString FromDouble(double value)FromString(string)
Mixins.csCreates a union value holding the given string.
public static BooleanOrDoubleOrString FromString(string value)GetHashCode()
Mixins.csToString()
Mixins.csOperators
| Name | Description |
|---|---|
| operator ==(BooleanOrDoubleOrString, BooleanOrDoubleOrString) | Returns whether the two union values hold equal values. |
| implicit operator BooleanOrDoubleOrString(bool) | Converts a boolean to a union value. |
| implicit operator BooleanOrDoubleOrString(double) | Converts a number to a union value. |
| implicit operator BooleanOrDoubleOrString(string) | Converts a string to a union value. |
| operator !=(BooleanOrDoubleOrString, BooleanOrDoubleOrString) | Returns whether the two union values hold different values. |
operator ==(BooleanOrDoubleOrString, BooleanOrDoubleOrString)
Mixins.csReturns whether the two union values hold equal values.
public static bool operator ==(BooleanOrDoubleOrString left, BooleanOrDoubleOrString right)op_Implicit overloads
implicit operator BooleanOrDoubleOrString(bool)
Mixins.csConverts a boolean to a union value.
public static implicit operator BooleanOrDoubleOrString(bool value)implicit operator BooleanOrDoubleOrString(double)
Mixins.csConverts a number to a union value.
public static implicit operator BooleanOrDoubleOrString(double value)implicit operator BooleanOrDoubleOrString(string)
Mixins.csConverts a string to a union value.
public static implicit operator BooleanOrDoubleOrString(string value)operator !=(BooleanOrDoubleOrString, BooleanOrDoubleOrString)
Mixins.csReturns whether the two union values hold different values.
public static bool operator !=(BooleanOrDoubleOrString left, BooleanOrDoubleOrString right)