Fixed bug where setting accessor position actually didn't
This commit is contained in:
parent
578fb0cf87
commit
5962249bec
@ -19,7 +19,7 @@ namespace UniversalEditor
|
||||
public abstract long Length { get; set; }
|
||||
|
||||
private long mvarPosition = 0;
|
||||
public long Position { get { return mvarPosition; } set { Seek(mvarPosition, SeekOrigin.Begin); } }
|
||||
public long Position { get { return mvarPosition; } set { mvarPosition = value; Seek(mvarPosition, SeekOrigin.Begin); } }
|
||||
public long Remaining { get { return Length - Position; } }
|
||||
|
||||
public void Seek(int length, SeekOrigin position)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user