Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Remove() [2/2]

StringBuilder System.Text.StringBuilder.Remove ( int startIndex,
int length )
inline

Definition at line 1049 of file StringBuilder.cs.

1050 {
1051 if (length < 0)
1052 {
1053 throw new ArgumentOutOfRangeException("length", SR.ArgumentOutOfRange_NegativeLength);
1054 }
1055 if (startIndex < 0)
1056 {
1057 throw new ArgumentOutOfRangeException("startIndex", SR.ArgumentOutOfRange_StartIndex);
1058 }
1059 if (length > Length - startIndex)
1060 {
1061 throw new ArgumentOutOfRangeException("length", SR.ArgumentOutOfRange_Index);
1062 }
1063 if (Length == length && startIndex == 0)
1064 {
1065 Length = 0;
1066 return this;
1067 }
1068 if (length > 0)
1069 {
1071 }
1072 return this;
1073 }

References System.SR.ArgumentOutOfRange_Index, System.SR.ArgumentOutOfRange_NegativeLength, System.SR.ArgumentOutOfRange_StartIndex, System.length, System.Text.StringBuilder.Length, System.ComponentModel.Remove, and System.startIndex.

Referenced by System.Reflection.Emit.TypeNameBuilder.CloseGenericArguments(), System.Xml.XmlCharacterData.DeleteData(), System.DateTimeFormat.FormatCustomized(), System.Diagnostics.AsyncStreamReader.MoveLinesFromStringBuilderToMessageQueue(), System.Reflection.Emit.TypeNameBuilder.PopOpenGenericArgument(), System.Globalization.IdnMapping.PunycodeEncode(), and System.Xml.XmlCharacterData.ReplaceData().