Guest User

Untitled

a guest
Dec 6th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. абажур ткань потолок
  2. абажур ткань с
  3. абажур торшер вышивка
  4. абстрактные вышивка
  5. абстрактные вышивки
  6.  
  7. [абажур ткань потолок
  8. абажур ткань с]
  9.  
  10. [абажур торшер вышивка]
  11.  
  12. [абстрактные вышивка
  13. абстрактные вышивки]
  14.  
  15. public static IEnumerable<string> SplitByLength(this string str, int maxLength) {
  16. for (int index = 0; index < str.Length; index += maxLength) {
  17. yield return str.Substring(index, Math.Min(maxLength, str.Length - index));
  18. }
  19. }
Add Comment
Please, Sign In to add comment