private string FormatProperty(Difference difference) { string shortItem = difference.GetShortItem(); StringBuilder sb = new StringBuilder(shortItem.Length); string[] words = shortItem.Split(new [] {'.'}, StringSplitOptions.RemoveEmptyEntries); foreach (var word in words) { sb.Append(StringHelper.InsertSpaces(word)); sb.Append(" "); } return sb.ToString().Trim(); }
private string FormatProperty(Difference difference) { string shortItem = difference.GetShortItem(); StringBuilder sb = new StringBuilder(shortItem.Length); string[] words = shortItem.Split(new [] { '.' }, StringSplitOptions.RemoveEmptyEntries); foreach (var word in words) { sb.Append(StringHelper.InsertSpaces(word)); sb.Append(" "); } return(sb.ToString().Trim()); }