NodeOrString Struct
The (Node or DOMString) union used by the ParentNode and ChildNode mixins.
public readonly struct NodeOrStringProperties
| Name | Description |
|---|---|
| Node | Gets the node, or null when the value is a string. |
| StringValue | Gets the string, or null when the value is a node. |
Node
Mixins.csStringValue
Mixins.csMethods
| Name | Description |
|---|---|
| FromNode(Node) | Creates a union value holding the given node. |
| FromString(string) | Creates a union value holding the given string. |
FromNode(Node)
Mixins.csCreates a union value holding the given node.
public static NodeOrString FromNode(Node node)FromString(string)
Mixins.csCreates a union value holding the given string.
public static NodeOrString FromString(string value)Operators
| Name | Description |
|---|---|
| implicit operator NodeOrString(Node) | Converts a node to a union value. |
| implicit operator NodeOrString(string) | Converts a string to a union value. |
op_Implicit overloads
implicit operator NodeOrString(Node)
Mixins.csConverts a node to a union value.
public static implicit operator NodeOrString(Node node)implicit operator NodeOrString(string)
Mixins.csConverts a string to a union value.
public static implicit operator NodeOrString(string value)