SanitizerConfigOrSanitizerPresets Struct
The (SanitizerConfig or SanitizerPresets) union.
public readonly struct SanitizerConfigOrSanitizerPresets : IEquatable<SanitizerConfigOrSanitizerPresets>Properties
| Name | Description |
|---|---|
| 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 configuration or a sanitizer preset. |
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(SanitizerConfigOrSanitizerPresets) | 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. |
| 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(SanitizerConfigOrSanitizerPresets)
SanitizerTypes.csIndicates whether the current object is equal to another object of the same type.
public bool Equals(SanitizerConfigOrSanitizerPresets other)Parameters
otherSanitizerConfigOrSanitizerPresets- 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.csFromSanitizerConfig(SanitizerConfig)
SanitizerTypes.csCreates the union from a sanitizer configuration.
public static SanitizerConfigOrSanitizerPresets FromSanitizerConfig(SanitizerConfig value)FromSanitizerPresets(SanitizerPresets)
SanitizerTypes.csCreates the union from a sanitizer preset.
public static SanitizerConfigOrSanitizerPresets FromSanitizerPresets(SanitizerPresets value)GetHashCode()
SanitizerTypes.csOperators
| Name | Description |
|---|---|
| operator ==(SanitizerConfigOrSanitizerPresets, SanitizerConfigOrSanitizerPresets) | Determines whether two unions are equal. |
| implicit operator SanitizerConfigOrSanitizerPresets(SanitizerConfig) | Converts a sanitizer configuration to the union. |
| implicit operator SanitizerConfigOrSanitizerPresets(SanitizerPresets) | Converts a sanitizer preset to the union. |
| operator !=(SanitizerConfigOrSanitizerPresets, SanitizerConfigOrSanitizerPresets) | Determines whether two unions are different. |
operator ==(SanitizerConfigOrSanitizerPresets, SanitizerConfigOrSanitizerPresets)
SanitizerTypes.csDetermines whether two unions are equal.
public static bool operator ==(SanitizerConfigOrSanitizerPresets left, SanitizerConfigOrSanitizerPresets right)op_Implicit overloads
implicit operator SanitizerConfigOrSanitizerPresets(SanitizerConfig)
SanitizerTypes.csConverts a sanitizer configuration to the union.
public static implicit operator SanitizerConfigOrSanitizerPresets(SanitizerConfig value)implicit operator SanitizerConfigOrSanitizerPresets(SanitizerPresets)
SanitizerTypes.csConverts a sanitizer preset to the union.
public static implicit operator SanitizerConfigOrSanitizerPresets(SanitizerPresets value)operator !=(SanitizerConfigOrSanitizerPresets, SanitizerConfigOrSanitizerPresets)
SanitizerTypes.csDetermines whether two unions are different.
public static bool operator !=(SanitizerConfigOrSanitizerPresets left, SanitizerConfigOrSanitizerPresets right)