I have an array called Buffer. I am using a for loop to initialize its contents to 0. How do I do it in a single statement in C#? I do not want to use the for-loop.
byte[] Buffer = new byte[50];
int arrC = 0;
// array initialization
for (arrC = 0; arrC < 50; arrC++)
{
Buffer[arrC] = 0;
}
default(byte)is0