A wrapping implementation of an IEnumerator<(Of <(<'T>)>)> that upcasts elements from a given enumerator to another one.

Namespace: yWorks.Support
Assembly: yWorks.yFilesSilverlight.Viewer (in yWorks.yFilesSilverlight.Viewer.dll) Version: 2.4.0.0

Syntax

C#
public sealed class CastingEnumerator<R, T> : IEnumerator<T>, IDisposable, IEnumerator where R : T
Visual Basic
Public NotInheritable Class CastingEnumerator(Of R As T, T) _ Implements IEnumerator(Of T), IDisposable, IEnumerator

Type Parameters

R
The type of the elements in the enumerator to be wrapped.
T
The type of the elements in this enumerator.

Inheritance Hierarchy

System..::..Object
  yWorks.Support..::..CastingEnumerator<(Of <(<'R, T>)>)>

See Also