SanitizerPI Struct
The SanitizerPI typedef: (DOMString or SanitizerProcessingInstruction).
public readonly struct SanitizerPI : IEquatable<SanitizerPI>- Implements
Properties
| Name | Description |
|---|---|
| ProcessingInstruction | Gets the value as a processing instruction description, or null when the union holds another type. |
| Target | Gets the value as a processing instruction target, or null when the union holds another type. |
| Value | Gets the value of the union: a processing instruction target or a processing instruction description. |
ProcessingInstruction
SanitizerTypes.csGets the value as a processing instruction description, or null when the union holds another type.
public SanitizerProcessingInstruction? ProcessingInstruction { get; }Property value
Target
SanitizerTypes.csValue
SanitizerTypes.csMethods
| Name | Description |
|---|---|
| Equals(SanitizerPI) | 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. |
| FromSanitizerProcessingInstruction(SanitizerProcessingInstruction) | Creates the union from a processing instruction description. |
| FromString(string) | Creates the union from a processing instruction target. |
| GetHashCode() | Returns the hash code for this instance. |
Equals overloads
Equals(SanitizerPI)
SanitizerTypes.csIndicates whether the current object is equal to another object of the same type.
public bool Equals(SanitizerPI other)Parameters
otherSanitizerPI- An object to compare with this object.
Returns
bool true if the current object is equal to the other parameter; otherwise, false.
Equals(object?)
SanitizerTypes.csFromSanitizerProcessingInstruction(SanitizerProcessingInstruction)
SanitizerTypes.csCreates the union from a processing instruction description.
public static SanitizerPI FromSanitizerProcessingInstruction(SanitizerProcessingInstruction value)FromString(string)
SanitizerTypes.csCreates the union from a processing instruction target.
public static SanitizerPI FromString(string value)GetHashCode()
SanitizerTypes.csOperators
| Name | Description |
|---|---|
| operator ==(SanitizerPI, SanitizerPI) | Determines whether two unions are equal. |
| implicit operator SanitizerPI(SanitizerProcessingInstruction) | Converts a processing instruction description to the union. |
| implicit operator SanitizerPI(string) | Converts a processing instruction target to the union. |
| operator !=(SanitizerPI, SanitizerPI) | Determines whether two unions are different. |
operator ==(SanitizerPI, SanitizerPI)
SanitizerTypes.csDetermines whether two unions are equal.
public static bool operator ==(SanitizerPI left, SanitizerPI right)op_Implicit overloads
implicit operator SanitizerPI(SanitizerProcessingInstruction)
SanitizerTypes.csConverts a processing instruction description to the union.
public static implicit operator SanitizerPI(SanitizerProcessingInstruction value)implicit operator SanitizerPI(string)
SanitizerTypes.csConverts a processing instruction target to the union.
public static implicit operator SanitizerPI(string value)operator !=(SanitizerPI, SanitizerPI)
SanitizerTypes.csDetermines whether two unions are different.
public static bool operator !=(SanitizerPI left, SanitizerPI right)