using System;
namespace ConsoleApplication_C_Sharp
{
class Program
{
static void Main(string[] args)
{
byte[] arr = new byte[] { 1, 2, 3, 4, 5, 6, 7 };
for (int i = 0; i < Buffer.ByteLength(arr); i++)
Console.WriteLine(Buffer.GetByte(arr, i));
}
}
}
/*
run:
1
2
3
4
5
6
7
*/