fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. const int X = 5;
  6. const int Y = 6;
  7. const int Z = 7;
  8. public static void Main()
  9. {
  10. byte[,,] threeD = new byte[X,Y,Z];
  11. byte[] res = new byte[X*Y*Z];
  12. Buffer.BlockCopy(threeD, 0, res, 0, X*Y*Z*sizeof(byte));
  13. }
  14. }
Success #stdin #stdout 0s 33568KB
stdin
Standard input is empty
stdout
Standard output is empty