Show / Hide Table of Contents

Class EnumerableTuple

Provides static methods allow to convert tuples into enumerable collections.

Inheritance
Object
EnumerableTuple
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: DotNext
Assembly: DotNext.dll
Syntax
[Obsolete("Use Span.AsSpan(ref ValueTuple) extension methods instead")]
public static class EnumerableTuple

Methods

| Improve this Doc View Source

AsEnumerable<T>(Tuple<T, T, T, T, T, T, T>)

Converts tuple into enumerable collection of seven items.

Declaration
public static EnumerableTuple<T, Tuple<T, T, T, T, T, T, T>> AsEnumerable<T>(Tuple<T, T, T, T, T, T, T> tuple)
Parameters
Type Name Description
Tuple<T, T, T, T, T, T, T> tuple

The tuple to be converted into enumerable collection.

Returns
Type Description
EnumerableTuple<T, Tuple<T, T, T, T, T, T, T>>

The tuple in the form of enumerable collection.

Type Parameters
Name Description
T

The type of items in the tuple.

| Improve this Doc View Source

AsEnumerable<T>(Tuple<T, T, T, T, T, T>)

Converts tuple into enumerable collection of six items.

Declaration
public static EnumerableTuple<T, Tuple<T, T, T, T, T, T>> AsEnumerable<T>(Tuple<T, T, T, T, T, T> tuple)
Parameters
Type Name Description
Tuple<T, T, T, T, T, T> tuple

The tuple to be converted into enumerable collection.

Returns
Type Description
EnumerableTuple<T, Tuple<T, T, T, T, T, T>>

The tuple in the form of enumerable collection.

Type Parameters
Name Description
T

The type of items in the tuple.

| Improve this Doc View Source

AsEnumerable<T>(Tuple<T, T, T, T, T>)

Converts tuple into enumerable collection of five items.

Declaration
public static EnumerableTuple<T, Tuple<T, T, T, T, T>> AsEnumerable<T>(Tuple<T, T, T, T, T> tuple)
Parameters
Type Name Description
Tuple<T, T, T, T, T> tuple

The tuple to be converted into enumerable collection.

Returns
Type Description
EnumerableTuple<T, Tuple<T, T, T, T, T>>

The tuple in the form of enumerable collection.

Type Parameters
Name Description
T

The type of items in the tuple.

| Improve this Doc View Source

AsEnumerable<T>(Tuple<T, T, T, T>)

Converts tuple into enumerable collection of four items.

Declaration
public static EnumerableTuple<T, Tuple<T, T, T, T>> AsEnumerable<T>(Tuple<T, T, T, T> tuple)
Parameters
Type Name Description
Tuple<T, T, T, T> tuple

The tuple to be converted into enumerable collection.

Returns
Type Description
EnumerableTuple<T, Tuple<T, T, T, T>>

The tuple in the form of enumerable collection.

Type Parameters
Name Description
T

The type of items in the tuple.

| Improve this Doc View Source

AsEnumerable<T>(Tuple<T, T, T>)

Converts tuple into enumerable collection of three items.

Declaration
public static EnumerableTuple<T, Tuple<T, T, T>> AsEnumerable<T>(Tuple<T, T, T> tuple)
Parameters
Type Name Description
Tuple<T, T, T> tuple

The tuple to be converted into enumerable collection.

Returns
Type Description
EnumerableTuple<T, Tuple<T, T, T>>

The tuple in the form of enumerable collection.

Type Parameters
Name Description
T

The type of items in the tuple.

| Improve this Doc View Source

AsEnumerable<T>(Tuple<T, T>)

Converts tuple into enumerable collection of two items.

Declaration
public static EnumerableTuple<T, Tuple<T, T>> AsEnumerable<T>(Tuple<T, T> tuple)
Parameters
Type Name Description
Tuple<T, T> tuple

The tuple to be converted into enumerable collection.

Returns
Type Description
EnumerableTuple<T, Tuple<T, T>>

The tuple in the form of enumerable collection.

Type Parameters
Name Description
T

The type of items in the tuple.

| Improve this Doc View Source

AsEnumerable<T>(Tuple<T>)

Converts tuple into enumerable collection of single item.

Declaration
public static EnumerableTuple<T, Tuple<T>> AsEnumerable<T>(Tuple<T> tuple)
Parameters
Type Name Description
Tuple<T> tuple

The tuple to be converted into enumerable collection.

Returns
Type Description
EnumerableTuple<T, Tuple<T>>

The tuple in the form of enumerable collection.

Type Parameters
Name Description
T

The type of items in the tuple.

| Improve this Doc View Source

AsEnumerable<T>((T, T, T, T, T, T, T))

Converts tuple into enumerable collection of seven items.

Declaration
public static EnumerableTuple<T, (T, T, T, T, T, T, T)> AsEnumerable<T>((T, T, T, T, T, T, T) tuple)
Parameters
Type Name Description
ValueTuple<T, T, T, T, T, T, T> tuple

The tuple to be converted into enumerable collection.

Returns
Type Description
EnumerableTuple<T, ValueTuple<T, T, T, T, T, T, T>>

The tuple in the form of enumerable collection.

Type Parameters
Name Description
T

The type of items in the tuple.

| Improve this Doc View Source

AsEnumerable<T>((T, T, T, T, T, T))

Converts tuple into enumerable collection of six items.

Declaration
public static EnumerableTuple<T, (T, T, T, T, T, T)> AsEnumerable<T>((T, T, T, T, T, T) tuple)
Parameters
Type Name Description
ValueTuple<T, T, T, T, T, T> tuple

The tuple to be converted into enumerable collection.

Returns
Type Description
EnumerableTuple<T, ValueTuple<T, T, T, T, T, T>>

The tuple in the form of enumerable collection.

Type Parameters
Name Description
T

The type of items in the tuple.

| Improve this Doc View Source

AsEnumerable<T>((T, T, T, T, T))

Converts tuple into enumerable collection of five items.

Declaration
public static EnumerableTuple<T, (T, T, T, T, T)> AsEnumerable<T>((T, T, T, T, T) tuple)
Parameters
Type Name Description
ValueTuple<T, T, T, T, T> tuple

The tuple to be converted into enumerable collection.

Returns
Type Description
EnumerableTuple<T, ValueTuple<T, T, T, T, T>>

The tuple in the form of enumerable collection.

Type Parameters
Name Description
T

The type of items in the tuple.

| Improve this Doc View Source

AsEnumerable<T>((T, T, T, T))

Converts tuple into enumerable collection of four items.

Declaration
public static EnumerableTuple<T, (T, T, T, T)> AsEnumerable<T>((T, T, T, T) tuple)
Parameters
Type Name Description
ValueTuple<T, T, T, T> tuple

The tuple to be converted into enumerable collection.

Returns
Type Description
EnumerableTuple<T, ValueTuple<T, T, T, T>>

The tuple in the form of enumerable collection.

Type Parameters
Name Description
T

The type of items in the tuple.

| Improve this Doc View Source

AsEnumerable<T>((T, T, T))

Converts tuple into enumerable collection of three items.

Declaration
public static EnumerableTuple<T, (T, T, T)> AsEnumerable<T>((T, T, T) tuple)
Parameters
Type Name Description
ValueTuple<T, T, T> tuple

The tuple to be converted into enumerable collection.

Returns
Type Description
EnumerableTuple<T, ValueTuple<T, T, T>>

The tuple in the form of enumerable collection.

Type Parameters
Name Description
T

The type of items in the tuple.

| Improve this Doc View Source

AsEnumerable<T>((T, T))

Converts tuple into enumerable collection of two items.

Declaration
public static EnumerableTuple<T, (T, T)> AsEnumerable<T>((T, T) tuple)
Parameters
Type Name Description
ValueTuple<T, T> tuple

The tuple to be converted into enumerable collection.

Returns
Type Description
EnumerableTuple<T, ValueTuple<T, T>>

The tuple in the form of enumerable collection.

Type Parameters
Name Description
T

The type of items in the tuple.

| Improve this Doc View Source

AsEnumerable<T>((T))

Converts tuple into enumerable collection of single item.

Declaration
public static EnumerableTuple<T, (T)> AsEnumerable<T>((T) tuple)
Parameters
Type Name Description
ValueTuple<T> tuple

The tuple to be converted into enumerable collection.

Returns
Type Description
EnumerableTuple<T, ValueTuple<T>>

The tuple in the form of enumerable collection.

Type Parameters
Name Description
T

The type of items in the tuple.

See Also

Tuple
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX