This documentation is archived and is not being maintained.
BitConverter::IsLittleEndian Field
Visual Studio 2010
Indicates the byte order ("endianness") 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 namespace System; int main() { Console::WriteLine( "This example of the BitConverter::IsLittleEndian field " "generates \nthe following output when run on " "x86-class computers.\n" ); Console::WriteLine( "IsLittleEndian: {0}", BitConverter::IsLittleEndian ); } /* This example of the BitConverter::IsLittleEndian field generates the following output when run on x86-class computers. IsLittleEndian: True */
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: