mscorlib(4.0.0.0) API with additions
ConsoleCancelEventArgs.cs
1 namespace System
2 {
5  public sealed class ConsoleCancelEventArgs : EventArgs
6  {
7  private ConsoleSpecialKey _type;
8 
9  private bool _cancel;
10 
15  public bool Cancel
16  {
17  get
18  {
19  return _cancel;
20  }
21  set
22  {
23  _cancel = value;
24  }
25  }
26 
29  public ConsoleSpecialKey SpecialKey => _type;
30 
32  {
33  _type = type;
34  _cancel = false;
35  }
36  }
37 }
Definition: __Canon.cs:3
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition: EventArgs.cs:9
ConsoleSpecialKey
Specifies combinations of modifier and console keys that can interrupt the current process.
bool Cancel
Gets or sets a value that indicates whether simultaneously pressing the F:System.ConsoleModifiers....
Provides data for the E:System.Console.CancelKeyPress event. This class cannot be inherited.
Specifies that the class can be serialized.
ConsoleSpecialKey SpecialKey
Gets the combination of modifier and console keys that interrupted the current process.