Table of Contents

Class ToggleBuildOption

Namespace
Invex.Atom.Build.BuildOptions
Assembly
Invex.Atom.Build.dll

The base class for build options that represent an on/off toggle.

public abstract record ToggleBuildOption : IBuildOption
Inheritance
object
ToggleBuildOption
Implements
Derived

Remarks

Use the IsEnabled extension in BuildOptionExtensions to check whether a toggle option is present and enabled in a set of options. When the same option type appears multiple times, the last occurrence wins.

Constructors

ToggleBuildOption()

protected ToggleBuildOption()

Properties

Enabled

Gets a value indicating whether the option is enabled. Defaults to true.

public bool Enabled { get; init; }

Property Value

bool