BaseSwitchCollection<T> Class

Summary

Base for switches that can be given multiple times. An example is ISupportSwitchExcludeFilenames (-x!*.pdf -x!*.xml) which uses SwitchExcludeFilenameCollection (which implements this BaseCollection) to set multiple SwitchExcludeFilename.
graph BT Type-->Base0["Object"] Type-.->Interface0["ISwitch"] click Interface0 "/api/Cake.SevenZip.Switches/ISwitch" Type["BaseSwitchCollection<T>"] class Type type-node Derived0["SwitchIncludeArchiveFilenameCollection"]-->Type click Derived0 "/api/Cake.SevenZip.Switches/SwitchIncludeArchiveFilenameCollection" Derived1["SwitchIncludeFilenameCollection"]-->Type click Derived1 "/api/Cake.SevenZip.Switches/SwitchIncludeFilenameCollection" Derived2["SwitchExcludeFilenameCollection"]-->Type click Derived2 "/api/Cake.SevenZip.Switches/SwitchExcludeFilenameCollection" Derived3["SwitchVolumeCollection"]-->Type click Derived3 "/api/Cake.SevenZip.Switches/SwitchVolumeCollection" Derived4["SwitchSetHashFunctionCollection"]-->Type click Derived4 "/api/Cake.SevenZip.Switches/SwitchSetHashFunctionCollection" Derived5["SwitchExcludeArchiveFilenameCollection"]-->Type click Derived5 "/api/Cake.SevenZip.Switches/SwitchExcludeArchiveFilenameCollection"

Syntax

public abstract class BaseSwitchCollection<T> : ISwitch where T : ISwitch

Attributes

Type Description
NullableContextAttribute
NullableAttribute

Type Parameters

Name Description
T The Switch-Type.

Constructors

Name Summary
BaseSwitchCollection() Initializes a new instance of the BaseSwitchCollection<T> class.

Properties

Name Value Summary
Switches List<T>
Gets the switches.

Methods

Name Value Summary
Add(T) void
Adds the specified switch.
BuildArguments(ProcessArgumentBuilder) void
Builds the arguments using the builder.

Extension Methods

Name Value Summary
Dump<BaseSwitchCollection<T>>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<BaseSwitchCollection<T>>(BaseSwitchCollection<T>[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<BaseSwitchCollection<T>>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<BaseSwitchCollection<T>>(string) void
Requires the Cake.Issues addin
ThrowIfNull<BaseSwitchCollection<T>>(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<BaseSwitchCollection<T>>(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
Requires the Cake.Issues addin

See Also