BitConverter.IsLittleEndian Field
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Indicates the byte order ("endianess") in which data is stored in this computer architecture.
Assembly: mscorlib (in mscorlib.dll)
This value is true if the architecture is little-endian; false if it is big-endian.
Different computer architectures store data using different byte orders. "Big-endian" means the most significant byte is on the left end of a word. "Little-endian" means the most significant byte is on the right end of a word.
The following code example illustrates the use of the IsLittleEndian field.
// Example of the BitConverter.IsLittleEndian field. using System; class Example { public static void Demo(System.Windows.Controls.TextBlock outputBlock) { outputBlock.Text += "This example of the BitConverter.IsLittleEndian field " + "generates \nthe following output when run on " + "x86-class computers.\n" + "\n"; outputBlock.Text += String.Format("IsLittleEndian: {0}", BitConverter.IsLittleEndian) + "\n"; } } /* This example of the BitConverter.IsLittleEndian field generates the following output when run on x86-class computers. IsLittleEndian: True */