Exemple #1
0
        private static string GetInputTargetsText(IReadOnlyList <object?> inputTargets)
        {
            return(inputTargets.AggregateToStringBuilder(
                       (builder, item) =>
            {
                if (item != null)
                {
                    builder.Append(item.GetType());
                }
                else
                {
                    builder.Append("<null>");
                }

                builder.Append(',').Append(' ');
            }).ToString());
        }
 private static string GetVersions(IReadOnlyList <NuGetVersion> versions)
 {
     return(versions.AggregateToStringBuilder(new StringBuilder().AppendLine(), (builder, version) => builder.AppendLine(version.ToFullString())).ToString());
 }