MAF,
You could just use a quick loop to do this:
// Initialize all elements to -1.
for (int index = 0; index < IDs.Length; ++index)
{
// Initialize.
IDs[index] = -1;
}
You might be able to get some faster performance by manipulating the
memory directly. If you want, you can use an unsafe block of code and pin
the address of the array. Once you have that, you can pass that to the
RtlFillMemory API function, specifying a value of 255 (you want this because
you want all the bits in the byte to be filled, when you have four bytes
where all the bits are filled, for an int, you have -1).
Hope this helps.