311 {
312 get
313 {
314 if (!global::Interop.Kernel32.GetConsoleCursorInfo(
OutputHandle, out var cci))
315 {
317 }
318 return cci.dwSize;
319 }
320 set
321 {
322 if (value < 1 || value > 100)
323 {
325 }
326 if (!global::Interop.Kernel32.GetConsoleCursorInfo(
OutputHandle, out var cci))
327 {
329 }
331 if (!global::Interop.Kernel32.SetConsoleCursorInfo(
OutputHandle, ref cci))
332 {
334 }
335 }
336 }
static IntPtr OutputHandle
static Exception GetExceptionForWin32Error(int errorCode, string path="")
static int GetLastPInvokeError()
static string ArgumentOutOfRange_CursorSize