[corlib] Improve file:// url handling in AppDomainSetup. (#16161)
[mono-project.git] / mcs / class / corlib / System / BitConverter.cs
blob67aa078edec1c9126dd3e0fa135d510f932299ce
1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3 // See the LICENSE file in the project root for more information.
5 using System.Runtime.CompilerServices;
7 namespace System
9 public static partial class BitConverter
11 [Intrinsic]
12 public static readonly bool IsLittleEndian;
14 static BitConverter ()
16 unsafe {
17 ushort i = 0x1234;
18 byte *b = (byte*)&i;
19 IsLittleEndian = (*b == 0x34);