Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Unlock()

virtual void System.IO.FileStream.Unlock ( long position,
long length )
inlinevirtualinherited

Reimplemented in System.IO.IsolatedStorage.IsolatedStorageFileStream.

Definition at line 242 of file FileStream.cs.

243 {
244 if (position < 0 || length < 0)
245 {
246 ThrowHelper.ThrowArgumentOutOfRangeException_NeedNonNegNum((position < 0) ? "position" : "length");
247 }
248 else if (_strategy.IsClosed)
249 {
250 ThrowHelper.ThrowObjectDisposedException_FileClosed();
251 }
252 _strategy.Unlock(position, length);
253 }
readonly FileStreamStrategy _strategy
Definition FileStream.cs:12
void Unlock(long position, long length)

References System.IO.FileStream._strategy, System.IO.Strategies.FileStreamStrategy.IsClosed, System.length, System.ThrowHelper.ThrowArgumentOutOfRangeException_NeedNonNegNum(), System.ThrowHelper.ThrowObjectDisposedException_FileClosed(), and System.IO.Strategies.FileStreamStrategy.Unlock().

Referenced by System.IO.IsolatedStorage.IsolatedStorageFileStream.Unlock().