What is the most effecient way to clear an array?

Hi,
I have an byte[] array I want to set all the bytes to 0.
NETMF doesn’t have a Clear() method on arrays like full framework.

is this my best option:

for (i = 0; i < displayBuffer.Length; i++)
{
displayBuffer[i] = 0;
}

Or is there a better way?

Can’t remember but something like Array.clear

1 Like

Perfect. Thanks :slight_smile: