June 2006
Intermediate to advanced
1344 pages
42h 52m
English
Class StringBuilder provides 18 overloaded Insert methods to allow values of various types to be inserted at any position in a StringBuilder. There are versions of Insert for each of the primitive types and for character arrays, Strings and Objects. Each version takes its second argument, converts it to a String and inserts the String into the StringBuilder at the index specified by the first argument. The index must be greater than or equal to 0 and less than the length of the StringBuilder; otherwise, an ArgumentOutOfRangeException occurs.
Class StringBuilder also provides method Remove for deleting characters in a StringBuilder. Method Remove takes two arguments—the index at ...
Read now
Unlock full access