Fixed bug where setting accessor position actually didn't

This commit is contained in:
Michael Becker 2014-04-05 23:35:12 -04:00
parent 578fb0cf87
commit 5962249bec

View File

@ -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)