Table of Contents

Class CharChainSwapOperation

Namespace
Gve.Text
Assembly
Gve.Text.dll

Swap operation for a chain of characters.

public sealed class CharChainSwapOperation : CharChainOperation, IHasToArgument
Inheritance
CharChainSwapOperation
Implements
Inherited Members

Constructors

CharChainSwapOperation()

Initializes a new instance of the CharChainSwapOperation class.

public CharChainSwapOperation()

Properties

To

Gets or sets the reference position.

public int To { get; set; }

Property Value

int

ToAsIndex

Gets or sets a value indicating whether To refers to an index rather than a chain node ID.

public bool ToAsIndex { get; set; }

Property Value

bool

ToRun

Gets or sets the run of characters from To.

public int ToRun { get; set; }

Property Value

int

Methods

Execute(ChainOperationContext<char>)

Executes this operation on the specified context.

public override void Execute(ChainOperationContext<char> context)

Parameters

context ChainOperationContext<char>

The context.

Exceptions

ArgumentNullException

context

InvalidOperationException

non-zero run

ToString()

Converts to string.

public override string ToString()

Returns

string

A string that represents this instance.

See Also