TreeEnumerator<TKey, TValue> Class

 

Supports simple iteration over any STL/CLR object that implements the ITree<TKey, TValue> interface.

Namespace:   Microsoft.VisualC.StlClr
Assembly:  Microsoft.VisualC.STLCLR (in Microsoft.VisualC.STLCLR.dll)

System.Object
  Microsoft.VisualC.StlClr.TreeEnumeratorBase<TKey, TValue>
    Microsoft.VisualC.StlClr.TreeEnumerator<TKey, TValue>

public class TreeEnumerator<TKey, TValue> : TreeEnumeratorBase<TKey, TValue>, 
	IEnumerator<TValue>

Type Parameters

TKey

The type of the key component of an element in the controlled sequence.

TValue

The type of the value component of an element in the controlled sequence.

NameDescription
System_CAPS_pubmethodTreeEnumerator<TKey, TValue>(INode<TValue>)

Allocates and initializes a new TreeEnumerator<TKey, TValue> object.

NameDescription
System_CAPS_pubpropertyCurrent

Gets or sets the current element in the collection.

NameDescription
System_CAPS_pubmethodDispose()

Frees, releases, or resets unmanaged resources that are used by the TreeEnumerator<TKey, TValue> object.

System_CAPS_protmethodDispose(Boolean)

Frees, releases, or resets unmanaged resources that are used by the TreeEnumerator<TKey, TValue> object.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodMoveNext()

Advances the enumerator to the next element in the collection.(Overrides TreeEnumeratorBase<TKey, TValue>.MoveNext().)

System_CAPS_pubmethodReset()

Sets the enumerator to its initial position, which is before the first element in the collection.(Overrides TreeEnumeratorBase<TKey, TValue>.Reset().)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

Some methods, especially operators, declare a type for a parameter but do not specify a parameter name. Such a parameter is known as an unnamed parameter. In the documentation for these methods, the __unnamed0 placeholder represents the unnamed parameter.

.NET Framework
Available since 3.5

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: