Table of Contents

Class RelatedScope

Namespace
SunamoData.Data
Assembly
SunamoData.dll

EN: null is neutral (if has before and after same state, is considered as this state) CZ: null is neutral(if has before and after same state, is considered as this state)

public class RelatedScope
Inheritance
RelatedScope
Inherited Members
Extension Methods

Constructors

RelatedScope(int)

Initializes a new instance of the RelatedScope class with the specified array size.

public RelatedScope(int arraySize)

Parameters

arraySize int

The size of the internal state array.

RelatedScope(bool?[])

Initializes a new instance of the RelatedScope class with the specified states.

public RelatedScope(bool?[] states)

Parameters

states bool?[]

The initial states array.

Methods

RangeFromState(bool)

Returns ranges where all lines between have a specific state. Was used for deleting comments.

public List<FromTo> RangeFromState(bool defaultValue)

Parameters

defaultValue bool

The default state value to start with.

Returns

List<FromTo>

A list of ranges matching the criteria.

RangeFromStateSimple(List<int>)

Is used for deleting regions blocks. All lines between must dont exists or be empty

public List<FromTo> RangeFromStateSimple(List<int> startIndexes)

Parameters

startIndexes List<int>

The list of start indexes to check.

Returns

List<FromTo>