Empty elements in C# byte array

Viewed 118449

Is there any method to empty an Byte array in C#?

Byte[] array = new Byte[64]; // contain all 0

// write some value into the array

// need empty array with all 0's
5 Answers

Kindly use Array.Empty method

byte[] rawBytes = Array.Empty();

Related