Class EnumerableExtensions
Inheritance
EnumerableExtensions
Assembly: Acoustics.Shared.dll
Syntax
public static class EnumerableExtensions
Methods
|
Improve this Doc
View Source
All(IEnumerable<Boolean>)
Declaration
public static bool All(this IEnumerable<bool> sequence)
Parameters
Returns
|
Improve this Doc
View Source
ForEach<T>(IEnumerable<T>, Action<T, Int32>)
Declaration
public static void ForEach<T>(this IEnumerable<T> source, Action<T, int> action)
Parameters
Type Parameters
|
Improve this Doc
View Source
ForEach<T>(IEnumerable<T>, Action<T>)
Declaration
public static void ForEach<T>(this IEnumerable<T> source, Action<T> action)
Parameters
Type Parameters
|
Improve this Doc
View Source
FromTwoDimensionalArray<TBase, T>(Dictionary<String, T[,]>, Dictionary<String, Action<TBase, T[]>>, TwoDimensionalArray)
Declaration
public static TBase[] FromTwoDimensionalArray<TBase, T>(this Dictionary<string, T[, ]> items, Dictionary<string, Action<TBase, T[]>> setters, TwoDimensionalArray dimensionality = TwoDimensionalArray.None)
where TBase : new()
Parameters
Returns
Type Parameters
|
Improve this Doc
View Source
IsNullOrEmpty<T>(IEnumerable<T>)
Declaration
[ContractAnnotation("items:null => true")]
public static bool IsNullOrEmpty<T>(this IEnumerable<T> items)
Parameters
Returns
Type Parameters
|
Improve this Doc
View Source
Join(IEnumerable, String)
Declaration
public static string Join(this IEnumerable items, string delimiter = " ")
Parameters
Returns
|
Improve this Doc
View Source
Join<T>(IEnumerable<T>, String, String, String)
Declaration
public static string Join<T>(this IEnumerable<T> items, string delimiter = " ", string prefix = "", string suffix = "")
Parameters
Returns
Type Parameters
|
Improve this Doc
View Source
Declaration
public static string JoinFormatted(this IEnumerable<double> items, string formatString = "{0:f2}", string delimiter = " ")
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static string JoinFormatted<T>(this IEnumerable<T> items, string formatString, string delimiter = " ")
where T : IFormattable
Parameters
Returns
Type Parameters
|
Improve this Doc
View Source
SumAndCount(List<Int32>, Func<Int32, Boolean>)
Declaration
public static Tuple<int, int> SumAndCount(this List<int> items, Func<int, bool> predicate)
Parameters
Returns
|
Improve this Doc
View Source
ToTwoDimensionalArray<T, TBase>(IList<TBase>, Dictionary<String, Func<TBase, T[]>>, TwoDimensionalArray)
Declaration
public static Dictionary<string, T[, ]> ToTwoDimensionalArray<T, TBase>(this IList<TBase> items, Dictionary<string, Func<TBase, T[]>> selectors, TwoDimensionalArray dimensionality = TwoDimensionalArray.None)
Parameters
Returns
Type Parameters
|
Improve this Doc
View Source
Windowed<T>(IEnumerable<T>, Int32)
Declaration
public static IEnumerable<T[]> Windowed<T>(this IEnumerable<T> list, int windowSize)
Parameters
Returns
Type Parameters
|
Improve this Doc
View Source
WindowedOrDefault<T>(IEnumerable<T>, Int32, T)
Declaration
public static IEnumerable<T[]> WindowedOrDefault<T>(this IEnumerable<T> list, int windowSize, T defaultValue = null)
Parameters
Returns
Type Parameters