Class EnumerableExtensions
public static class EnumerableExtensions
- Inheritance
-
EnumerableExtensions
Methods
ToDiagnosticString<T>(IEnumerable<T>, string?, bool)
Returns well formatted text.
public static string ToDiagnosticString<T>(this IEnumerable<T> source, string? header = null, bool addTableHeader = true)
Parameters
source
IEnumerable<T>Source to process.
header
stringOptional header text.
addTableHeader
boolif true (default), adds table header.
Returns
- string
Formatted text.
Type Parameters
T
ToDiagnosticString<T>(IEnumerable<T>, StringBuilder, bool)
Returns well formatted text.
public static StringBuilder ToDiagnosticString<T>(this IEnumerable<T> source, StringBuilder stringBuilder, bool addTableHeader = true)
Parameters
source
IEnumerable<T>Source to process.
stringBuilder
StringBuilderStringBuilder instance.
addTableHeader
boolif true (default), adds table header.
Returns
- StringBuilder
Formatted text.
Type Parameters
T