Struct Interrupter
- Namespace
- Cobilas
- Assembly
- Cobilas.Core.dll
Represents a list of switches.
[Serializable]
public struct Interrupter : IDisposable
- Implements
- Inherited Members
- Extension Methods
Constructors
Interrupter(int)
Only one switch specifying the index will be used, the others will remain at false value.
public Interrupter(int Capacity)
Parameters
Capacity
intHow many switches.
Interrupter(int, bool)
Only one switch specifying the index will be used, the others will remain at false value.
public Interrupter(int Capacity, bool UseASwitch)
Parameters
Properties
CurrentIndex
Returns the current switch index.
public int CurrentIndex { get; }
Property Value
this[int]
Gets or sets a switch when specifying an index.
public bool this[int Index] { get; set; }
Parameters
Index
int
Property Value
UseASwitch
This property allows the exchange of a single switch for multiple switches and vice versa.
public bool UseASwitch { get; set; }
Property Value
Methods
Dispose()
Resource disposal.
public void Dispose()
ToString()
Returns a text representation of the object.
public override string ToString()