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 "/Cake.7zip/api/Cake.SevenZip.Switches/ISwitch" Type["BaseSwitchCollection<T>"] class Type type-node Derived0["SwitchIncludeFilenameCollection"]-->Type click Derived0 "/Cake.7zip/api/Cake.SevenZip.Switches/SwitchIncludeFilenameCollection" Derived1["SwitchIncludeArchiveFilenameCollection"]-->Type click Derived1 "/Cake.7zip/api/Cake.SevenZip.Switches/SwitchIncludeArchiveFilenameCollection" Derived2["SwitchSetHashFunctionCollection"]-->Type click Derived2 "/Cake.7zip/api/Cake.SevenZip.Switches/SwitchSetHashFunctionCollection" Derived3["SwitchExcludeFilenameCollection"]-->Type click Derived3 "/Cake.7zip/api/Cake.SevenZip.Switches/SwitchExcludeFilenameCollection" Derived4["SwitchVolumeCollection"]-->Type click Derived4 "/Cake.7zip/api/Cake.SevenZip.Switches/SwitchVolumeCollection" Derived5["SwitchExcludeArchiveFilenameCollection"]-->Type click Derived5 "/Cake.7zip/api/Cake.SevenZip.Switches/SwitchExcludeArchiveFilenameCollection"

Syntax

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

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.

See Also

GitHub Discussion