Sometimes there's a case where you want to cut a piece of string in the middle. This is doable via mix of Substring and Append, but would be nice to have a function that just does this itself.
Suggested prototype:
String String.Remove(int startIndex, int count = -1);
if count is passed as < 0 (default), then this will remove everything starting with startIndex.
Sometimes there's a case where you want to cut a piece of string in the middle. This is doable via mix of Substring and Append, but would be nice to have a function that just does this itself.
Suggested prototype:
if count is passed as < 0 (default), then this will remove everything starting with
startIndex
.