Print the word size and endianness of the host machine.

See also: Variable size/Get

static void Main()
{
  Console.WriteLine("Word size = {0} bytes,",sizeof(int));
 
  if (BitConverter.IsLittleEndian)
    Console.WriteLine("Little-endian.");
  else
    Console.WriteLine("Big-endian.");
}