Table of Contents

Class GetGenericEnumerable

Namespace
Existential
Assembly
Existential.Net.dll

Provides methods to convert one or more items, or a non-generic collection, of the same type to a generic IEnumerable.

public static class GetGenericEnumerable
Inheritance
System.Object
GetGenericEnumerable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()

Methods

From(IEnumerable)

Converts an System.Collections.IEnumerable to an System.Collections.Generic.IEnumerable<T> if no type is specified.

public static IEnumerable<object> From(IEnumerable inEnumerable)

Parameters

inEnumerable System.Collections.IEnumerable

A non-generic collection to be converted.

Returns

System.Collections.Generic.IEnumerable<System.Object>

An System.Collections.Generic.IEnumerable<T> containing the items.

From<T>(T[])

Converts one or more items to an IEnumerable of the same type.

public static IEnumerable<T> From<T>(params T[] inItems)

Parameters

inItems T[]

The item or items to be converted to an IEnumerable.

Returns

System.Collections.Generic.IEnumerable<T>

An System.Collections.Generic.IEnumerable<T> containing the items.

Type Parameters

T

The type of the items to be converted to an IEnumerable.