SanitizerOrSanitizerConfigOrSanitizerPresets Struct
The (Sanitizer or SanitizerConfig or SanitizerPresets) union.
public readonly struct SanitizerOrSanitizerConfigOrSanitizerPresets : IEquatable<SanitizerOrSanitizerConfigOrSanitizerPresets>Properties
| Name | Description |
|---|---|
| Sanitizer | Gets the value as a sanitizer, or null when the union holds another type. |
| SanitizerConfig | Gets the value as a sanitizer configuration, or null when the union holds another type. |
| SanitizerPresets | Gets the value as a sanitizer preset, or null when the union holds another type. |
| Value | Gets the value of the union: a sanitizer or a sanitizer configuration or a sanitizer preset. |
Sanitizer
SanitizerTypes.csGets the value as a sanitizer, or null when the union holds another type.
public Sanitizer? Sanitizer { get; }Property value
SanitizerConfig
SanitizerTypes.csGets the value as a sanitizer configuration, or null when the union holds another type.
public SanitizerConfig? SanitizerConfig { get; }Property value
SanitizerPresets
SanitizerTypes.csGets the value as a sanitizer preset, or null when the union holds another type.
public SanitizerPresets? SanitizerPresets { get; }Property value
Value
SanitizerTypes.csMethods
| Name | Description |
|---|---|
| Equals(SanitizerOrSanitizerConfigOrSanitizerPresets) | 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. |
| FromSanitizer(Sanitizer) | Creates the union from a sanitizer. |
| FromSanitizerConfig(SanitizerConfig) | Creates the union from a sanitizer configuration. |
| FromSanitizerPresets(SanitizerPresets) | Creates the union from a sanitizer preset. |
| GetHashCode() | Returns the hash code for this instance. |
Equals overloads
Equals(SanitizerOrSanitizerConfigOrSanitizerPresets)
SanitizerTypes.csIndicates whether the current object is equal to another object of the same type.
public bool Equals(SanitizerOrSanitizerConfigOrSanitizerPresets other)Parameters
otherSanitizerOrSanitizerConfigOrSanitizerPresets- 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.csFromSanitizer(Sanitizer)
SanitizerTypes.csCreates the union from a sanitizer.
public static SanitizerOrSanitizerConfigOrSanitizerPresets FromSanitizer(Sanitizer value)FromSanitizerConfig(SanitizerConfig)
SanitizerTypes.csCreates the union from a sanitizer configuration.
public static SanitizerOrSanitizerConfigOrSanitizerPresets FromSanitizerConfig(SanitizerConfig value)FromSanitizerPresets(SanitizerPresets)
SanitizerTypes.csCreates the union from a sanitizer preset.
public static SanitizerOrSanitizerConfigOrSanitizerPresets FromSanitizerPresets(SanitizerPresets value)GetHashCode()
SanitizerTypes.csOperators
| Name | Description |
|---|---|
| operator ==(SanitizerOrSanitizerConfigOrSanitizerPresets, SanitizerOrSanitizerConfigOrSanitizerPresets) | Determines whether two unions are equal. |
| implicit operator SanitizerOrSanitizerConfigOrSanitizerPresets(Sanitizer) | Converts a sanitizer to the union. |
| implicit operator SanitizerOrSanitizerConfigOrSanitizerPresets(SanitizerConfig) | Converts a sanitizer configuration to the union. |
| implicit operator SanitizerOrSanitizerConfigOrSanitizerPresets(SanitizerPresets) | Converts a sanitizer preset to the union. |
| operator !=(SanitizerOrSanitizerConfigOrSanitizerPresets, SanitizerOrSanitizerConfigOrSanitizerPresets) | Determines whether two unions are different. |
operator ==(SanitizerOrSanitizerConfigOrSanitizerPresets, SanitizerOrSanitizerConfigOrSanitizerPresets)
SanitizerTypes.csDetermines whether two unions are equal.
public static bool operator ==(SanitizerOrSanitizerConfigOrSanitizerPresets left, SanitizerOrSanitizerConfigOrSanitizerPresets right)Parameters
Returns
op_Implicit overloads
implicit operator SanitizerOrSanitizerConfigOrSanitizerPresets(Sanitizer)
SanitizerTypes.csConverts a sanitizer to the union.
public static implicit operator SanitizerOrSanitizerConfigOrSanitizerPresets(Sanitizer value)implicit operator SanitizerOrSanitizerConfigOrSanitizerPresets(SanitizerConfig)
SanitizerTypes.csConverts a sanitizer configuration to the union.
public static implicit operator SanitizerOrSanitizerConfigOrSanitizerPresets(SanitizerConfig value)implicit operator SanitizerOrSanitizerConfigOrSanitizerPresets(SanitizerPresets)
SanitizerTypes.csConverts a sanitizer preset to the union.
public static implicit operator SanitizerOrSanitizerConfigOrSanitizerPresets(SanitizerPresets value)operator !=(SanitizerOrSanitizerConfigOrSanitizerPresets, SanitizerOrSanitizerConfigOrSanitizerPresets)
SanitizerTypes.csDetermines whether two unions are different.
public static bool operator !=(SanitizerOrSanitizerConfigOrSanitizerPresets left, SanitizerOrSanitizerConfigOrSanitizerPresets right)