2 references to TryGetCachedLength
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\IO\Strategies\OSFileStreamStrategy.cs (2)
192
Debug.Assert(!_fileHandle.
TryGetCachedLength
(out _), "If length can be cached (file opened for reading, not shared for writing), it should be impossible to modify file length");
279
if (_fileHandle.
TryGetCachedLength
(out long cachedLength) && Volatile.Read(ref _filePosition) >= cachedLength)