RadioNodeListOrElement Struct

The (RadioNodeList or Element) union returned by the named getters of forms.

public readonly struct RadioNodeListOrElement : IEquatable<RadioNodeListOrElement>
Implements

Properties

NameDescription
ElementGets the value as an Element, or null when the value is a node list.
RadioNodeListGets the value as a RadioNodeList, or null when the value is an element.
ValueGets the value: a RadioNodeList or an Element.

Gets the value as an Element, or null when the value is a node list.

public Element? Element { get; }

Property value

Element?

RadioNodeList

HtmlFormElement.cs

Gets the value as a RadioNodeList, or null when the value is an element.

public RadioNodeList? RadioNodeList { get; }

Property value

RadioNodeList?

Gets the value: a RadioNodeList or an Element.

public object Value { get; }

Property value

object

Methods

NameDescription
Equals(RadioNodeListOrElement)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.
FromElement(Element)Creates the union from an Element.
FromRadioNodeList(RadioNodeList)Creates the union from a RadioNodeList.
GetHashCode()Returns the hash code for this instance.

Equals overloads

Equals(RadioNodeListOrElement)

HtmlFormElement.cs

Indicates whether the current object is equal to another object of the same type.

public bool Equals(RadioNodeListOrElement other)
Parameters
other RadioNodeListOrElement
An object to compare with this object.
Returns

bool true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

HtmlFormElement.cs

Indicates whether this instance and a specified object are equal.

public override bool Equals(object? obj)
Parameters
obj object?
The object to compare with the current instance.
Returns

bool true if obj and this instance are the same type and represent the same value; otherwise, false.

FromElement(Element)

HtmlFormElement.cs

Creates the union from an Element.

public static RadioNodeListOrElement FromElement(Element value)

Parameters

value Element

Returns

RadioNodeListOrElement

FromRadioNodeList(RadioNodeList)

HtmlFormElement.cs

Creates the union from a RadioNodeList.

public static RadioNodeListOrElement FromRadioNodeList(RadioNodeList value)

GetHashCode()

HtmlFormElement.cs

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int A 32-bit signed integer that is the hash code for this instance.

Operators

NameDescription
operator ==(RadioNodeListOrElement, RadioNodeListOrElement)Determines whether two unions are equal.
implicit operator RadioNodeListOrElement(Element)Converts an Element to the union.
implicit operator RadioNodeListOrElement(RadioNodeList)Converts a RadioNodeList to the union.
operator !=(RadioNodeListOrElement, RadioNodeListOrElement)Determines whether two unions are different.

operator ==(RadioNodeListOrElement, RadioNodeListOrElement)

HtmlFormElement.cs

Determines whether two unions are equal.

public static bool operator ==(RadioNodeListOrElement left, RadioNodeListOrElement right)

op_Implicit overloads

implicit operator RadioNodeListOrElement(Element)

HtmlFormElement.cs

Converts an Element to the union.

public static implicit operator RadioNodeListOrElement(Element value)
Parameters
value Element
Returns

RadioNodeListOrElement

implicit operator RadioNodeListOrElement(RadioNodeList)

HtmlFormElement.cs

Converts a RadioNodeList to the union.

public static implicit operator RadioNodeListOrElement(RadioNodeList value)

operator !=(RadioNodeListOrElement, RadioNodeListOrElement)

HtmlFormElement.cs

Determines whether two unions are different.

public static bool operator !=(RadioNodeListOrElement left, RadioNodeListOrElement right)