купить фильтр для воды // Длина строки 23 куплю фильтр для воды // Длина строки 21 

The sum of the string lengths is 44. This is in c #. But in the notebook due to the space when you move the line 45 !!! )) Cognitive dissonance people) How to calculate the number of characters in Sharp, together with these hyphenation, I mean the sum of the lengths of the lines Picture

    2 answers 2

     string firstString = "купить фильтр для воды "; string secondString = "куплю фильтр для воды"; int sum = firstString.Length + secondString.Length; 

      len (str1) + len (str2) + ... + len (strN) + (N - 1)