.NET Framework 4.6 and 4.5
Returns an ArrayList whose elements are copies of the specified value.
static member Repeat :
count:int -> ArrayList
- Type: System.Object
The Object to copy multiple times in the new ArrayList. The value can be a null reference (Nothing in Visual Basic).
- Type: System.Int32
The number of times value should be copied.
ArrayList accepts a null reference (Nothing in Visual Basic) as a valid value and allows duplicate elements.
This method is an O(n) operation, where n is count.
The following code example shows how to create and initialize a new ArrayList with the same value.
No code example is currently available or this language may not be supported.
Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1
.NET Framework Client Profile
Supported in: 4, 3.5 SP1