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
CapacityintHow 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 readonly int CurrentIndex { get; }
Property Value
this[int]
Gets or sets a switch when specifying an index.
public bool this[int Index] { readonly get; set; }
Parameters
Indexint
Property Value
UseASwitch
This property allows the exchange of a single switch for multiple switches and vice versa.
public bool UseASwitch { readonly get; set; }
Property Value
Methods
Dispose()
Resource disposal.
public void Dispose()
ToString()
Returns a text representation of the object.
public override readonly string ToString()