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

◆ InsertRange()

override void System.Collections.ArrayList.Range.InsertRange ( int index,
ICollection c )
inlinevirtual

Reimplemented from System.Collections.ArrayList.

Definition at line 1923 of file ArrayList.cs.

1924 {
1925 if (index < 0 || index > _baseSize)
1926 {
1927 throw new ArgumentOutOfRangeException("index", SR.ArgumentOutOfRange_Index);
1928 }
1929 if (c == null)
1930 {
1931 throw new ArgumentNullException("c");
1932 }
1934 int count = c.Count;
1935 if (count > 0)
1936 {
1938 _baseSize += count;
1940 }
1941 }
virtual void InsertRange(int index, ICollection c)

References System.Collections.ArrayList.Range._baseIndex, System.Collections.ArrayList.Range._baseList, System.Collections.ArrayList.Range._baseSize, System.SR.ArgumentOutOfRange_Index, System.count, System.Collections.ICollection.Count, System.index, System.Collections.ArrayList.InsertRange(), System.Collections.ArrayList.Range.InternalUpdateRange(), and System.Collections.ArrayList.Range.InternalUpdateVersion().