src/Misc/EFTools/XmlCore/Common/Diagnostics/EFToolsTraceUtils.cs
/// <summary>
///     Formats an enumerable collection of objects into a string, calling the converter delegate on each to get a string,
///     with a name and a count of the objects prepended
/// </summary>
Formats an enumerable collection of objects into a string, calling the converter delegate on each to get a string,
with a name and a count of the objects prepended
Formats an enumerable collection of objects into a string calling the converter delegate on each to get a string with a name and a count of the objects prepended
internal static string FormatNamedEnumerable<T>(
            string name, IEnumerable<T> enumerable, Func<T, string> converter, bool newlineForEach = false,
            string newlineIndent = DefaultIndent, string listStart = DefaultListStart, string listEnd = DefaultListEnd,
            string listSeparator = DefaultListSeparator)
        {
            return
                name + " (Count=" + enumerable.Count() + ")=" +
                (newlineForEach ? Environment.NewLine + newlineIndent : string.Empty) +
                FormatEnumerable(enumerable, converter, newlineForEach, newlineIndent, listStart, listEnd, listSeparator);
        }
internal static string FormatNamedEnumerable < T > ( string name , IEnumerable < T > enumerable , Func < T , string > converter , bool newlineForEach = false , string newlineIndent = DefaultIndent , string listStart = DefaultListStart , string listEnd = DefaultListEnd , string listSeparator = DefaultListSeparator ) { return name + " " + enumerable . Count ( ) + " " + ( newlineForEach ? Environment . NewLine + newlineIndent : string . Empty ) + FormatEnumerable ( enumerable , converter , newlineForEach , newlineIndent , listStart , listEnd , listSeparator ) ; }
Formats an enumerable collection of objects into a string, calling the converter delegate on each to get a string,
with a name and a count of the objects prepended
Formats an enumerable collection of objects into a string calling the converter delegate on each to get a string with a name and a count of the objects prepended
name
string
enumerable
IEnumerable<T>
converter
Func<T, string>
newlineForEach
bool
newlineIndent
string
listStart
string
listEnd
string
listSeparator
string