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
enumerableIEnumerable<T>The main enumerable that is being prefixed.
prefixIEnumerable<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
TThe 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
enumerableIEnumerable<T>The main enumerable that is being prefixed.
prefixTThe 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
TThe 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
enumerableIEnumerable<T>The main enumerable that is being prefixed.
prefixT[]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
TThe 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
enumerableIEnumerable<T>The main enumerable that is being suffixed.
suffixIEnumerable<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
TThe 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
enumerableIEnumerable<T>The main enumerable that is being suffixed.
suffixTThe 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
TThe 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
enumerableIEnumerable<T>The main enumerable that is being suffixed.
suffixT[]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
TThe type of values contained in the enumerable.