Files
Apr2020-Cpp2Il-Dump/mscorlib/System/ConsoleKeyInfo.cs
T
niko 8fc35183db a
2026-04-11 22:19:20 +02:00

109 lines
4.9 KiB
C#

using System;
using Cpp2IlInjected;
namespace System
{
/// <summary>Describes the console key that was pressed, including the character represented by the console key and the state of the SHIFT, ALT, and CTRL modifier keys.</summary>
// Token: 0x020000C7 RID: 199
[Token(Token = "0x20000C7")]
[Serializable]
public struct ConsoleKeyInfo
{
/// <summary>Initializes a new instance of the <see cref="T:System.ConsoleKeyInfo" /> structure using the specified character, console key, and modifier keys.</summary>
/// <param name="keyChar">The Unicode character that corresponds to the <paramref name="key" /> parameter.</param>
/// <param name="key">The console key that corresponds to the <paramref name="keyChar" /> parameter.</param>
/// <param name="shift">
/// <see langword="true" /> to indicate that a SHIFT key was pressed; otherwise, <see langword="false" />.</param>
/// <param name="alt">
/// <see langword="true" /> to indicate that an ALT key was pressed; otherwise, <see langword="false" />.</param>
/// <param name="control">
/// <see langword="true" /> to indicate that a CTRL key was pressed; otherwise, <see langword="false" />.</param>
/// <exception cref="T:System.ArgumentOutOfRangeException">The numeric value of the <paramref name="key" /> parameter is less than 0 or greater than 255.</exception>
// Token: 0x06000603 RID: 1539 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000603")]
[Address(RVA = "0x25332C0", Offset = "0x25320C0", VA = "0x1825332C0")]
public ConsoleKeyInfo(char keyChar, ConsoleKey key, bool shift, bool alt, bool control)
{
}
/// <summary>Gets the Unicode character represented by the current <see cref="T:System.ConsoleKeyInfo" /> object.</summary>
/// <returns>An object that corresponds to the console key represented by the current <see cref="T:System.ConsoleKeyInfo" /> object.</returns>
// Token: 0x1700009F RID: 159
// (get) Token: 0x06000604 RID: 1540 RVA: 0x00004F98 File Offset: 0x00003198
[Token(Token = "0x1700009F")]
public char KeyChar
{
[Token(Token = "0x6000604")]
[Address(RVA = "0x1AA8150", Offset = "0x1AA6F50", VA = "0x181AA8150")]
get
{
return '\0';
}
}
/// <summary>Gets the console key represented by the current <see cref="T:System.ConsoleKeyInfo" /> object.</summary>
/// <returns>A value that identifies the console key that was pressed.</returns>
// Token: 0x170000A0 RID: 160
// (get) Token: 0x06000605 RID: 1541 RVA: 0x00004FB0 File Offset: 0x000031B0
[Token(Token = "0x170000A0")]
public ConsoleKey Key
{
[Token(Token = "0x6000605")]
[Address(RVA = "0x5DD040", Offset = "0x5DBE40", VA = "0x1805DD040")]
get
{
return (ConsoleKey)0;
}
}
/// <summary>Gets a value indicating whether the specified object is equal to the current <see cref="T:System.ConsoleKeyInfo" /> object.</summary>
/// <param name="value">An object to compare to the current <see cref="T:System.ConsoleKeyInfo" /> object.</param>
/// <returns>
/// <see langword="true" /> if <paramref name="value" /> is a <see cref="T:System.ConsoleKeyInfo" /> object and is equal to the current <see cref="T:System.ConsoleKeyInfo" /> object; otherwise, <see langword="false" />.</returns>
// Token: 0x06000606 RID: 1542 RVA: 0x00004FC8 File Offset: 0x000031C8
[Token(Token = "0x6000606")]
[Address(RVA = "0x25331C0", Offset = "0x2531FC0", VA = "0x1825331C0", Slot = "0")]
public override bool Equals(object value)
{
return default(bool);
}
/// <summary>Gets a value indicating whether the specified <see cref="T:System.ConsoleKeyInfo" /> object is equal to the current <see cref="T:System.ConsoleKeyInfo" /> object.</summary>
/// <param name="obj">An object to compare to the current <see cref="T:System.ConsoleKeyInfo" /> object.</param>
/// <returns>
/// <see langword="true" /> if <paramref name="obj" /> is equal to the current <see cref="T:System.ConsoleKeyInfo" /> object; otherwise, <see langword="false" />.</returns>
// Token: 0x06000607 RID: 1543 RVA: 0x00004FE0 File Offset: 0x000031E0
[Token(Token = "0x6000607")]
[Address(RVA = "0x2533270", Offset = "0x2532070", VA = "0x182533270")]
public bool Equals(ConsoleKeyInfo obj)
{
return default(bool);
}
/// <summary>Returns the hash code for the current <see cref="T:System.ConsoleKeyInfo" /> object.</summary>
/// <returns>A 32-bit signed integer hash code.</returns>
// Token: 0x06000608 RID: 1544 RVA: 0x00004FF8 File Offset: 0x000031F8
[Token(Token = "0x6000608")]
[Address(RVA = "0x25332B0", Offset = "0x25320B0", VA = "0x1825332B0", Slot = "2")]
public override int GetHashCode()
{
return 0;
}
// Token: 0x040002D0 RID: 720
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x40002D0")]
private char _keyChar;
// Token: 0x040002D1 RID: 721
[FieldOffset(Offset = "0x4")]
[Token(Token = "0x40002D1")]
private ConsoleKey _key;
// Token: 0x040002D2 RID: 722
[FieldOffset(Offset = "0x8")]
[Token(Token = "0x40002D2")]
private ConsoleModifiers _mods;
}
}