Table of Contents

Class AffixedEnumerableExtensions

Namespace
Garyon.Objects.Enumerators
Assembly
Garyon.dll

Provides extensions for quickly affixing enumerables.

public static class AffixedEnumerableExtensions
Inheritance
AffixedEnumerableExtensions
Inherited Members

Methods

WithPrefix<T>(IEnumerable<T>, IEnumerable<T>)

Returns an AffixedEnumerable<T> from the main enumerable with the specified enumerable as the prefix.

public static AffixedEnumerable<T> WithPrefix<T>(this IEnumerable<T> enumerable, IEnumerable<T> prefix)

Parameters

enumerable IEnumerable<T>

The main enumerable that is being prefixed.

prefix IEnumerable<T>

The enumerable to prepend before the main enumerable.

Returns

AffixedEnumerable<T>

An AffixedEnumerable<T> that contains the main enumerable prefixed by the given enumerable.

Type Parameters

T

The type of values contained in the enumerable.

WithPrefix<T>(IEnumerable<T>, T)

Returns an AffixedEnumerable<T> from the main enumerable with the specified single value as the prefix.

public static AffixedEnumerable<T> WithPrefix<T>(this IEnumerable<T> enumerable, T prefix)

Parameters

enumerable IEnumerable<T>

The main enumerable that is being prefixed.

prefix T

The single value to prepend before the main enumerable.

Returns

AffixedEnumerable<T>

An AffixedEnumerable<T> that contains the main enumerable prefixed by the given single value.

Type Parameters

T

The type of values contained in the enumerable.

WithPrefix<T>(IEnumerable<T>, params T[])

Returns an AffixedEnumerable<T> from the main enumerable with the specified enumerable as the prefix.

public static AffixedEnumerable<T> WithPrefix<T>(this IEnumerable<T> enumerable, params T[] prefix)

Parameters

enumerable IEnumerable<T>

The main enumerable that is being prefixed.

prefix T[]

The enumerable to prepend before the main enumerable.

Returns

AffixedEnumerable<T>

An AffixedEnumerable<T> that contains the main enumerable prefixed by the given enumerable.

Type Parameters

T

The type of values contained in the enumerable.

WithSuffix<T>(IEnumerable<T>, IEnumerable<T>)

Returns an AffixedEnumerable<T> from the main enumerable with the specified enumerable as the suffix.

public static AffixedEnumerable<T> WithSuffix<T>(this IEnumerable<T> enumerable, IEnumerable<T> suffix)

Parameters

enumerable IEnumerable<T>

The main enumerable that is being suffixed.

suffix IEnumerable<T>

The enumerable to prepend before the main enumerable.

Returns

AffixedEnumerable<T>

An AffixedEnumerable<T> that contains the main enumerable suffixed by the given enumerable.

Type Parameters

T

The type of values contained in the enumerable.

WithSuffix<T>(IEnumerable<T>, T)

Returns an AffixedEnumerable<T> from the main enumerable with the specified single value as the suffix.

public static AffixedEnumerable<T> WithSuffix<T>(this IEnumerable<T> enumerable, T suffix)

Parameters

enumerable IEnumerable<T>

The main enumerable that is being suffixed.

suffix T

The single value to prepend before the main enumerable.

Returns

AffixedEnumerable<T>

An AffixedEnumerable<T> that contains the main enumerable suffixed by the given single value.

Type Parameters

T

The type of values contained in the enumerable.

WithSuffix<T>(IEnumerable<T>, params T[])

Returns an AffixedEnumerable<T> from the main enumerable with the specified enumerable as the suffix.

public static AffixedEnumerable<T> WithSuffix<T>(this IEnumerable<T> enumerable, params T[] suffix)

Parameters

enumerable IEnumerable<T>

The main enumerable that is being suffixed.

suffix T[]

The enumerable to prepend before the main enumerable.

Returns

AffixedEnumerable<T>

An AffixedEnumerable<T> that contains the main enumerable suffixed by the given enumerable.

Type Parameters

T

The type of values contained in the enumerable.