New to Telerik UI for WPFStart a free 30-day trial

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:

C#
public sealed class KeyValueTrailVisitor<TKey, TValue> : IVisitor<KeyValuePair<TKey, TValue>>

Inheritance: objectKeyValueTrailVisitor<TKey, TValue>

Implements: IVisitor<KeyValuePair<TKey, TValue>>

Constructors

C#
public KeyValueTrailVisitor()

Properties

Gets a value indicating whether this instance has completed.

C#
public bool HasCompleted { get; }
Property Value:

true if this instance has completed; otherwise, false.

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

Keys

IList<TKey>

Gets the trail of the keys.

C#
public IList<TKey> Keys { get; }
Property Value:

The keys list.

Values

IList<TValue>

Gets the trail of the values.

C#
public IList<TValue> Values { get; }
Property Value:

The value list.

Methods

Visits the specified key pair.

C#
public void Visit(KeyValuePair<TKey, TValue> obj)
Parameters:objKeyValuePair<TKey, TValue>

The object.

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