BaseBoolSwitch Class

Summary

BaseClass for simple boolean switches.
graph BT Type-->Base0["Object"] Type-.->Interface0["ISwitch"] click Interface0 "/api/Cake.SevenZip.Switches/ISwitch" Type["BaseBoolSwitch"] class Type type-node Derived0["SwitchSetTimestampFromMostRecentFile"]-->Type click Derived0 "/api/Cake.SevenZip.Switches/SwitchSetTimestampFromMostRecentFile" Derived1["SwitchDeleteAfterCompression"]-->Type click Derived1 "/api/Cake.SevenZip.Switches/SwitchDeleteAfterCompression" Derived2["SwitchCompressFilesOpenForWriting"]-->Type click Derived2 "/api/Cake.SevenZip.Switches/SwitchCompressFilesOpenForWriting" Derived3["SwitchShowTechnicalInformation"]-->Type click Derived3 "/api/Cake.SevenZip.Switches/SwitchShowTechnicalInformation" Derived4["SwitchDisableParsingOfArchiveName"]-->Type click Derived4 "/api/Cake.SevenZip.Switches/SwitchDisableParsingOfArchiveName" Derived5["SwitchNtSecurityInformation"]-->Type click Derived5 "/api/Cake.SevenZip.Switches/SwitchNtSecurityInformation" Derived6["SwitchNtfsAlternateStreams"]-->Type click Derived6 "/api/Cake.SevenZip.Switches/SwitchNtfsAlternateStreams"

Syntax

public class BaseBoolSwitch : ISwitch

Attributes

Type Description
NullableContextAttribute
NullableAttribute

Constructors

Name Summary
BaseBoolSwitch(string, bool) Initializes a new instance of the BaseBoolSwitch class.

Methods

Name Value Summary
BuildArguments(ProcessArgumentBuilder) void
Builds the arguments using the builder.

Extension Methods

Name Value Summary
Dump<BaseBoolSwitch>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<BaseBoolSwitch>(BaseBoolSwitch[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<BaseBoolSwitch>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<BaseBoolSwitch>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
ThrowIfNull<BaseBoolSwitch>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<BaseBoolSwitch>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Returns the string value or a Not set> markup suitable for Spectre.Console.
Requires the Cake.Issues addin

See Also