Table of Contents

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 int

How 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

Capacity int

How many switches.

UseASwitch bool

Allows you to use one switch at a time.

Properties

CurrentIndex

Returns the current switch index.

public readonly int CurrentIndex { get; }

Property Value

int

this[int]

Gets or sets a switch when specifying an index.

public bool this[int Index] { readonly get; set; }

Parameters

Index int

Property Value

bool

UseASwitch

This property allows the exchange of a single switch for multiple switches and vice versa.

public bool UseASwitch { readonly get; set; }

Property Value

bool

Methods

Dispose()

Resource disposal.

public void Dispose()

ToString()

Returns a text representation of the object.

public override readonly string ToString()

Returns

string