Converts a non-generic IEnumerable instance to a generic
IEnumerable<(Of <(T>)>) by casting each element to T.
| C# | Visual Basic | Visual C++ |
public class CastingEnumerable<T> : IEnumerable<T>, IEnumerable
Public Class CastingEnumerable(Of T) _ Implements IEnumerable(Of T), IEnumerable
generic<typename T> public ref class CastingEnumerable : IEnumerable<T>, IEnumerable
- T
- The type to cast the items in the non-generic enumerable to.
| All Members | Constructors | Methods | |||
| Icon | Member | Description |
|---|---|---|
| ExtensionMethods..::.CastingEnumerable<(Of <(T>)>)(IEnumerable) |
Initializes a new instance of the ExtensionMethods..::.CastingEnumerable<(Of <(T>)>) class.
| |
| Equals(Object) | (Inherited from Object.) | |
| Finalize()()() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetEnumerator()()() |
Returns an enumerator that returns the items in the original non-generic enumerator
casted to T.
| |
| GetHashCode()()() | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetType()()() | Gets the type of the current instance. (Inherited from Object.) | |
| MemberwiseClone()()() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| ToString()()() | Returns a string that represents the current object. (Inherited from Object.) |
| Object | |
| ExtensionMethods..::.CastingEnumerable<(Of <(T>)>) | |
