In the C++ Standard Template Library (STL), it is possible for example to create a vector consisting of multiple copies of the same element, using this constructor:
In VB.NET
Imports System.Linq
Dim n As Integer = 10 Dim colorArray = New Color(n - 1) {}.[Select](Function(item) Color.White).ToArray()