Returns a new string in which a specified number of characters in the current instance beginning at a specified position have been deleted.
A new string that is equivalent to this instance except for the removed characters.
Type Reason ArgumentOutOfRangeException startIndex or count is less than zero.
-or-
startIndex plus count is greater than the length of the current instance.
In the dnprdnshort, strings are zero-based. The value of the startIndex parameter can range from zero to one less than the length of the string instance.
This method does not modify the value of the current instance. Instead, it returns a new string in which the number of characters specified by the count parameter have been removed. The characters are removed at the position specified by startIndex.