Struct Environment
The environment being operated.
[JsonConverter(typeof(EnvironmentConverter))]
public readonly record struct Environment : IEquatable<Environment>
- Implements
- Inherited Members
Properties
AllValues
public static IReadOnlyList<Environment> AllValues { get; }
Property Value
EnvironmentBrowser
Operates in a web browser.
public static Environment EnvironmentBrowser { get; }
Property Value
EnvironmentDesktop
Operates in a desktop environment.
public static Environment EnvironmentDesktop { get; }
Property Value
EnvironmentMobile
Operates in a mobile environment.
public static Environment EnvironmentMobile { get; }
Property Value
EnvironmentUnspecified
Defaults to browser.
public static Environment EnvironmentUnspecified { get; }
Property Value
Value
public string Value { get; }
Property Value
Methods
Equals(Environment)
public bool Equals(Environment other)
Parameters
otherEnvironment
Returns
FromString(string)
public static Environment FromString(string value)
Parameters
valuestring
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
implicit operator Environment(string)
public static implicit operator Environment(string value)
Parameters
valuestring