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

◆ Repeat()

static ArrayList System.Collections.ArrayList.Repeat ( object? value,
int count )
inlinestaticinherited

Definition at line 2647 of file ArrayList.cs.

2648 {
2649 if (count < 0)
2650 {
2651 throw new ArgumentOutOfRangeException("count", SR.ArgumentOutOfRange_NeedNonNegNum);
2652 }
2653 ArrayList arrayList = new ArrayList((count > 4) ? count : 4);
2654 for (int i = 0; i < count; i++)
2655 {
2656 arrayList.Add(value);
2657 }
2658 return arrayList;
2659 }

References System.Collections.ArrayList.ArrayList(), System.Collections.ArrayList.Add(), System.SR.ArgumentOutOfRange_NeedNonNegNum, System.count, and System.value.