I was reading this article.
Split String in C#
Question is, when I call Split method, does it adds more overhead (variables) in the memory?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Mar 20, 2011, 4:13 PM
String.Split() simply produces an array of sub-strings. So it does add more objects to the heap but this is unavoidable.
Sam HobbsPosted Mar 20, 2011, 10:55 PM
VulpesPosted Mar 20, 2011, 4:28 PM
Suthish NairPosted Mar 20, 2011, 4:13 PM