32 .ToDictionary(p => p, p => p.Starts.Count(s => s.Value !=
null && s.Value.IsCompetitionObjAssigned))
43 Dictionary<Person, string> nameStringsDict = numberStartsPerPerson.ToDictionary(kv => kv.Key, kv => $
"{kv.Key.FirstName}, {kv.Key.Name}");
44 int maxNameStrLen = nameStringsDict.Max(kv => kv.Value?.Length) ?? 30;
47 string moduleString =
string.Join(Environment.NewLine,
49 .Select(kv => $
"{nameStringsDict[kv.Key]}: ".PadRight(maxNameStrLen + 2) +
50 $
"{kv.Value.ToString()}x | {new string('#', kv.Value)}"));
51 foreach (
string placeholder
in Placeholders.Placeholders_AnalyticsStartsPerPerson) { textPlaceholder.Add(placeholder, moduleString); }
52 return textPlaceholder;