Show / Hide Table of Contents

Class GetGenericEnumerable<T>

A static class for creating generic IEnumerables.

Inheritance
System.Object
GetGenericEnumerable<T>
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()
Namespace: Existential
Assembly: Existential.Net.dll
Syntax
public static class GetGenericEnumerable<T>
Type Parameters
Name Description
T

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

Methods

View Source

From(T[])

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

Declaration
public static IEnumerable<T> From(params T[] inItems)
Parameters
Type Name Description
T[] inItems

The item or items to be converted to an IEnumerable.

Returns
Type Description
System.Collections.Generic.IEnumerable<T>

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

View Source

From(IEnumerable)

Converts an System.Collections.IEnumerable to an System.Collections.Generic.IEnumerable<T> (if possible).

Declaration
public static Maybe<IEnumerable<T>> From(IEnumerable inEnumerable)
Parameters
Type Name Description
System.Collections.IEnumerable inEnumerable

A non-generic collection.

Returns
Type Description
Maybe<System.Collections.Generic.IEnumerable<T>>

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

  • View Source
In This Article
Back to top Copyright © 2021 Dr. Gavin T.D. Greig.