Table of Contents

Class LinqExtensions

Namespace
MarymoorStudios.Core
Assembly
MarymoorStudios.Core.dll
public static class LinqExtensions
Inheritance
LinqExtensions
Inherited Members

Methods

StringJoin<T>(IEnumerable<T>, string)

Joins the elements of a sequence into a single string value.

public static string StringJoin<T>(this IEnumerable<T> source, string separator = " ")

Parameters

source IEnumerable<T>

The source sequence.

separator string

A string to separate items in the resulting concatenation.

Returns

string

A concatenation of the string form of all elements, separated by separator.

Type Parameters

T

The item type of the source.

WithIndex<T>(IEnumerable<T>)

Projects an existing sequence along with its 0-based indexes.

public static IEnumerable<(T, int)> WithIndex<T>(this IEnumerable<T> source)

Parameters

source IEnumerable<T>

The source sequence.

Returns

IEnumerable<(T, int)>

The same sequence in the same order with indexes.

Type Parameters

T

The item type of the source.