Exemple #1
0
        private void InitFromHandleImpl(SafeFileHandle handle, out bool canSeek, out bool isPipe)
        {
            FileStreamHelpers.GetFileTypeSpecificInformation(handle, out canSeek, out isPipe);

            OnInitFromHandle(handle);

            if (_canSeek)
            {
                SeekCore(handle, 0, SeekOrigin.Current);
            }
            else
            {
                _filePosition = 0;
            }
        }