コード例 #1
0
 public string Format(string template, string description)
 {
     return(template.FormatInvariant(
                description.NaIfEmpty(),
                TotalProcessed.ToString("N0"), TotalRecords.ToString("N0"),
                Success.ToString("N0"), Failure.ToString("N0"), Skipped.ToString("N0"),
                Added.ToString("N0"), Updated.ToString("N0")));
 }
コード例 #2
0
        public override string ToString()
        {
            if (!Content.Contains("{"))
            {
                return(Content);
            }

            var str = Content.FormatInvariant(
                Description.NaIfEmpty(),
                (int)Math.Round(ProcessedPercent),
                TotalProcessed.ToString("N0"), TotalRecords.ToString("N0"),
                Success.ToString("N0"), Failure.ToString("N0"), Skipped.ToString("N0"),
                Added.ToString("N0"), Updated.ToString("N0")
                );

            return(str);
        }