Slice vs splice in c#? | Sololearn: Learn to code for FREE!


Slice vs splice in c#?

2/9/2019 11:32:28 PM

Anamarija Bosnjak

2 Answers

New Answer


Anamarija Bosnjak Your question is unclear. I'm not aware of these methods existing for C#. Are you referring to Javascript? If so, then Arushi Singhania pretty much covered the differences. You can also review this link for a more indepth comparison in Javascript.


Slicing means extracting a specific part of string or array based on Ur choice. The splice adds/removes items to/from an array, and returns the removed item(s).This method changes the original array.