Class
KeyValueTrailVisitor<TKey, TValue>

A visitor that tracks (stores) keys from KeyValuePairs in the order they were visited.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.Windows.Diagrams.Core.dll

Type Parameters:

TKey

The type of key of the KeyValuePair.

TValue

The type of value of the KeyValuePair.

Syntax:

cs-api-definition
public sealed class KeyValueTrailVisitor<TKey, TValue> : IVisitor<KeyValuePair<TKey, TValue>>

Inheritance: objectKeyValueTrailVisitor<TKey, TValue>

Implements: IVisitor<KeyValuePair<TKey, TValue>>

Constructors

KeyValueTrailVisitor()

Declaration

cs-api-definition
public KeyValueTrailVisitor()

Properties

HasCompleted

Gets a value indicating whether this instance has completed.

Declaration

cs-api-definition
public bool HasCompleted { get; }

Property Value

bool

true if this instance has completed; otherwise, false.

Implements IVisitor<KeyValuePair<TKey, TValue>>.HasCompleted

Keys

Gets the trail of the keys.

Declaration

cs-api-definition
public IList<TKey> Keys { get; }

Property Value

IList<TKey>

The keys list.

Values

Gets the trail of the values.

Declaration

cs-api-definition
public IList<TValue> Values { get; }

Property Value

IList<TValue>

The value list.

Methods

Visit(KeyValuePair<TKey, TValue>)

Visits the specified key pair.

Declaration

cs-api-definition
public void Visit(KeyValuePair<TKey, TValue> obj)

Parameters

obj

KeyValuePair<TKey, TValue>

The object.

Implements IVisitor<KeyValuePair<TKey, TValue>>.Visit(KeyValuePair<TKey, TValue>)