Table of Contents

Class SettingValue

Namespace
OpenShell
Assembly
OpenShell.Sdk.dll

A typed setting value: string, bool, int64 or bytes.

public abstract record SettingValue : IEquatable<SettingValue>
Inheritance
SettingValue
Implements
Derived
Inherited Members

Methods

FromBool(bool)

Creates a boolean value.

public static SettingValue FromBool(bool value)

Parameters

value bool

Returns

SettingValue

FromBytes(ReadOnlySpan<byte>)

Creates a byte-array value; the bytes are copied.

public static SettingValue FromBytes(ReadOnlySpan<byte> value)

Parameters

value ReadOnlySpan<byte>

Returns

SettingValue

FromInt(long)

Creates a 64-bit integer value.

public static SettingValue FromInt(long value)

Parameters

value long

Returns

SettingValue

FromString(string)

Creates a string value.

public static SettingValue FromString(string value)

Parameters

value string

Returns

SettingValue

Operators

implicit operator SettingValue(bool)

Implicit conversion from bool.

public static implicit operator SettingValue(bool value)

Parameters

value bool

Returns

SettingValue

implicit operator SettingValue(long)

Implicit conversion from long.

public static implicit operator SettingValue(long value)

Parameters

value long

Returns

SettingValue

implicit operator SettingValue(string)

Implicit conversion from string.

public static implicit operator SettingValue(string value)

Parameters

value string

Returns

SettingValue