Don't update position until Seek() is called, in case Seek() throws an exception

This commit is contained in:
Michael Becker 2014-06-13 09:08:49 -04:00
parent cf9efa0ad6
commit 55ccb8e26d

View File

@ -19,7 +19,7 @@ namespace UniversalEditor
public abstract long Length { get; set; }
private long mvarPosition = 0;
public virtual long Position { get { return mvarPosition; } set { mvarPosition = value; Seek(mvarPosition, SeekOrigin.Begin); } }
public virtual long Position { get { return mvarPosition; } set { Seek(mvarPosition, SeekOrigin.Begin); mvarPosition = value; } }
public long Remaining
{