From bbf7cde84e93a7ade1b7db1a48ffbc656150cbb1 Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Tue, 31 Dec 2019 22:27:33 -0500 Subject: [PATCH] these should be DebuggerNonUserCode --- CSharp/Libraries/UniversalEditor.Core/Accessor.cs | 3 ++- .../Libraries/UniversalEditor.Core/Accessors/StreamAccessor.cs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CSharp/Libraries/UniversalEditor.Core/Accessor.cs b/CSharp/Libraries/UniversalEditor.Core/Accessor.cs index 81c2c66c..988292a1 100644 --- a/CSharp/Libraries/UniversalEditor.Core/Accessor.cs +++ b/CSharp/Libraries/UniversalEditor.Core/Accessor.cs @@ -83,10 +83,11 @@ namespace UniversalEditor /// /// The position within the underlying stream protected abstract long GetPosition(); + /// /// Gets or sets the position within the underlying stream, if possible. /// - public virtual long Position { get { return GetPosition(); } set { Seek(value, SeekOrigin.Begin); } } + public virtual long Position { get { return GetPosition(); } [DebuggerNonUserCode()] set { Seek(value, SeekOrigin.Begin); } } /// /// Determines how many bytes are remaining to be read from the underlying stream, if possible. diff --git a/CSharp/Libraries/UniversalEditor.Core/Accessors/StreamAccessor.cs b/CSharp/Libraries/UniversalEditor.Core/Accessors/StreamAccessor.cs index a5de06fc..7be86d5e 100644 --- a/CSharp/Libraries/UniversalEditor.Core/Accessors/StreamAccessor.cs +++ b/CSharp/Libraries/UniversalEditor.Core/Accessors/StreamAccessor.cs @@ -63,7 +63,7 @@ namespace UniversalEditor.Accessors set { mvarBaseStream.SetLength(value); } } - // [DebuggerNonUserCode()] + [DebuggerNonUserCode()] public override void Seek(long offset, SeekOrigin position) { System.IO.SeekOrigin origin = System.IO.SeekOrigin.Begin;