System.ConsolePal.WindowsConsoleStream.WindowsConsoleStream C# (CSharp) Method

WindowsConsoleStream() private method

private WindowsConsoleStream ( IntPtr handle, FileAccess access, bool useFileAPIs ) : System.IO
handle IntPtr
access FileAccess
useFileAPIs bool
return System.IO
            internal WindowsConsoleStream(IntPtr handle, FileAccess access, bool useFileAPIs)
                : base(access)
            {
                Debug.Assert(handle != IntPtr.Zero && handle != s_InvalidHandleValue, "ConsoleStream expects a valid handle!");
                _handle = handle;
                _isPipe = Interop.Kernel32.GetFileType(handle) == Interop.Kernel32.FileTypes.FILE_TYPE_PIPE;
                _useFileAPIs = useFileAPIs;
            }