SyntaxFix
Write A Post
Hire A Developer
Questions
You can use Enumerable.Repeat()
Enumerable.Repeat generates a sequence that contains one repeated value.
Enumerable.Repeat
Array of 100 items initialized to 0x20:
0x20
byte[] arr1 = Enumerable.Repeat((byte)0x20,100).ToArray();