Table of Contents

Class ExtensionMethods.CastingEnumerable<T>

Namespace
Ranorex.Core
Assembly
Ranorex.Core.dll

Converts a non-generic IEnumerable instance to a generic IEnumerable<T> by casting each element to T.

public class ExtensionMethods.CastingEnumerable<T> : IEnumerable<T>, IEnumerable

Type Parameters

T

The type to cast the items in the non-generic enumerable to.

Inheritance
ExtensionMethods.CastingEnumerable<T>
Implements
Inherited Members
Extension Methods

Constructors

CastingEnumerable(IEnumerable)

Initializes a new instance of the ExtensionMethods.CastingEnumerable<T> class.

public CastingEnumerable(IEnumerable nonGenericEnumerable)

Parameters

nonGenericEnumerable IEnumerable

The non generic enumerable.

Methods

GetEnumerator()

Returns an enumerator that returns the items in the original non-generic enumerator casted to T.

public IEnumerator<T> GetEnumerator()

Returns

IEnumerator<T>

A generic enumerator returning the items from the original non-generic enumerator.