Don't update position until Seek() is called, in case Seek() throws an exception
This commit is contained in:
parent
cf9efa0ad6
commit
55ccb8e26d
@ -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
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user