221 {
222 get
223 {
226 {
228 }
229 int mode = 0;
230 if (!global::Interop.Kernel32.GetConsoleMode(inputHandle, out mode))
231 {
233 }
234 return (mode & 1) == 0;
235 }
236 set
237 {
240 {
242 }
243 int mode = 0;
244 if (!global::Interop.Kernel32.GetConsoleMode(inputHandle, out mode))
245 {
247 }
248 mode = ((!
value) ? (mode | 1) : (mode & -2));
249 if (!global::Interop.Kernel32.SetConsoleMode(inputHandle, mode))
250 {
252 }
253 }
254 }
static IntPtr InvalidHandleValue
static IntPtr InputHandle
static Exception GetExceptionForWin32Error(int errorCode, string path="")
static int GetLastPInvokeError()
static string IO_NoConsole