public static void Main()
byte[] oneBytes = BitConverter.GetBytes(i);
Console.WriteLine("Hi! I'm little endian? {0}", BitConverter.IsLittleEndian);
Console.WriteLine("Checking 1 to bytes to int is = {0}", BitConverter.ToInt32(oneBytes, 0));
Console.WriteLine("Checking 1 to bytes count = {0}", oneBytes.Length);
Console.WriteLine("Reversed value of 1 to bytes is = {0}", BitConverter.ToInt32(oneBytes, 0));
Console.WriteLine("Now are we gonna check hardcoded values");
byte[] bigEndian = new byte[] { 0x01, 0x00, 0x00, 0x00 };
Console.WriteLine("bigEndian: {0}", BitConverter.ToInt32(bigEndian, 0));
byte[] littleEndian = new byte[] { 0x00, 0x00, 0x00, 0x01 };
Console.WriteLine("littleEndian: {0}", BitConverter.ToInt32(littleEndian, 0));