Files
2026-04-10 22:50:51 +02:00

53 lines
2.0 KiB
C#

using System;
using Cpp2IlInjected;
namespace System
{
/// <summary>Provides data for the <see cref="E:System.Console.CancelKeyPress" /> event. This class cannot be inherited.</summary>
// Token: 0x020000C4 RID: 196
[Token(Token = "0x20000C4")]
[Serializable]
public sealed class ConsoleCancelEventArgs : EventArgs
{
// Token: 0x06000600 RID: 1536 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000600")]
[Address(RVA = "0x2532CB0", Offset = "0x2531AB0", VA = "0x182532CB0")]
internal ConsoleCancelEventArgs(ConsoleSpecialKey type)
{
}
/// <summary>Gets or sets a value that indicates whether simultaneously pressing the <see cref="F:System.ConsoleModifiers.Control" /> modifier key and the <see cref="F:System.ConsoleKey.C" /> console key (Ctrl+C) or the Ctrl+Break keys terminates the current process. The default is <see langword="false" />, which terminates the current process.</summary>
/// <returns>
/// <see langword="true" /> if the current process should resume when the event handler concludes; <see langword="false" /> if the current process should terminate. The default value is <see langword="false" />; the current process terminates when the event handler returns. If <see langword="true" />, the current process continues.</returns>
// Token: 0x1700009E RID: 158
// (get) Token: 0x06000601 RID: 1537 RVA: 0x00004F80 File Offset: 0x00003180
[Token(Token = "0x1700009E")]
public bool Cancel
{
[Token(Token = "0x6000601")]
[Address(RVA = "0x40B710", Offset = "0x40A510", VA = "0x18040B710")]
get
{
return default(bool);
}
}
// Token: 0x06000602 RID: 1538 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000602")]
[Address(RVA = "0x2532C80", Offset = "0x2531A80", VA = "0x182532C80")]
internal ConsoleCancelEventArgs()
{
}
// Token: 0x0400022C RID: 556
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400022C")]
private ConsoleSpecialKey _type;
// Token: 0x0400022D RID: 557
[FieldOffset(Offset = "0x14")]
[Token(Token = "0x400022D")]
private bool _cancel;
}
}