// .NET 4.5: BinaryWriter has 'bool leaveOpen' ctor #region Ctor /// <summary>Null stream constructor</summary> EndianWriter() : base() { BaseStreamOwner = true; BaseAddress = Values.PtrHandle.Null32; ByteOrder = Shell.Platform.Environment.ProcessorType.ByteOrder; Owner = null; mStringEncoding = new UTF8Encoding(false, true); // Satisfy ObjectInvariant StreamName = "(null)"; mRequiresByteSwap = !ByteOrder.IsSameAsRuntime(); }