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

◆ Append() [21/26]

unsafe StringBuilder System.Text.StringBuilder.Append ( string? value,
int startIndex,
int count )
inline

Definition at line 853 of file StringBuilder.cs.

854 {
855 if (startIndex < 0)
856 {
857 throw new ArgumentOutOfRangeException("startIndex", SR.ArgumentOutOfRange_Index);
858 }
859 if (count < 0)
860 {
861 throw new ArgumentOutOfRangeException("count", SR.ArgumentOutOfRange_GenericPositive);
862 }
863 if (value == null)
864 {
865 if (startIndex == 0 && count == 0)
866 {
867 return this;
868 }
869 throw new ArgumentNullException("value");
870 }
871 if (count == 0)
872 {
873 return this;
874 }
875 if (startIndex > value.Length - count)
876 {
877 throw new ArgumentOutOfRangeException("startIndex", SR.ArgumentOutOfRange_Index);
878 }
879 fixed (char* ptr = value)
880 {
882 return this;
883 }
884 }
StringBuilder Append(char value, int repeatCount)

References System.Text.StringBuilder.Append(), System.SR.ArgumentOutOfRange_GenericPositive, System.SR.ArgumentOutOfRange_Index, System.count, System.Runtime.Serialization.Dictionary, System.startIndex, and System.value.