Guest User

4.Стрингове и текстообработка

a guest
Feb 24th, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. Стрингове и текстообработка
  2.  
  3. Strings are stored in the dynamic memory
  4. System.String is a reference type
  5.  
  6. Strings are immutable – когато променяме дадена променлива от тип стринг, то се allocate-ва ново парче памет, в което се записва нови, променен стринг
  7. Concat, Trim(), Substring() … return a new string (allocate new piece of memory)
  8. Replace() – removes all occurrences of given string with another
  9. Trim() – има overload, при който можем да казваме, кои точно елементи да се trim-ват
  10.  
  11. StringBuilder keeps a buffer memory, allocated in advance
Add Comment
Please, Sign In to add comment