Example #1
0
 /// <summary>
 /// https://stackoverflow.com/questions/323314/best-way-to-convert-pascal-case-to-a-sentence
 /// </summary>
 public static string ToFriendlyString(string st)
 {
     Precondition.ArgumentNotNull(st, nameof(st));
     return(Regex.Replace(st, "[a-z][A-Z]", m => $"{m.Value[0]} {char.ToLower(m.Value[1])}"));
 }