Share Link
Copied to clipboard
Embed on Your Page
Copied to clipboard
We Stand with Ukraine
C# Extension Method: Array - SetByte by ZZZ Projects
This example of the Array.SetByte(int, byte) method generates the following output.

  Initial values of arrays:

 shorts: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
  longs: 0000000000000000 0000000000000000 0000000000000000

Array values after setting:

  byte 3 = 25
  byte 6 = 64
  byte 12 = 121
  byte 17 = 196:

 shorts: 0000 C400 0000 0079 0000 0000 0040 0000 1900 0000
  longs: 000000000000C400 0000007900000000 0040000019000000
Cached Result
Last Run: 6:44:27 pm
Compile: 0.243s
Execute: 0.023s
Memory: 425.16kb
CPU: 0.109s