I heard a saying that c++ programmers should avoid memset, class ArrInit { //! int a[1024] = { 0 }; int a[1024];
I need to fill a byte[] with a single non-zero value. How can I do this in C# without looping through each byte in the array?