Files
Aug2021-Cpp2IL-Dump/mscorlib/System/Boolean.cs
T
2026-04-10 22:50:51 +02:00

379 lines
19 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System
{
/// <summary>Represents a Boolean (<see langword="true" /> or <see langword="false" />) value.</summary>
// Token: 0x020000BC RID: 188
[Token(Token = "0x20000BC")]
[ComVisible(true)]
[Serializable]
public struct Boolean : IComparable, IConvertible, IComparable<bool>, IEquatable<bool>
{
/// <summary>Returns the hash code for this instance.</summary>
/// <returns>A hash code for the current <see cref="T:System.Boolean" />.</returns>
// Token: 0x06000565 RID: 1381 RVA: 0x00004488 File Offset: 0x00002688
[Token(Token = "0x6000565")]
[Address(RVA = "0x26C91A0", Offset = "0x26C7FA0", VA = "0x1826C91A0", Slot = "2")]
public override int GetHashCode()
{
return 0;
}
/// <summary>Converts the value of this instance to its equivalent string representation (either "True" or "False").</summary>
/// <returns>"True" (the value of the <see cref="F:System.Boolean.TrueString" /> property) if the value of this instance is <see langword="true" />, or "False" (the value of the <see cref="F:System.Boolean.FalseString" /> property) if the value of this instance is <see langword="false" />.</returns>
// Token: 0x06000566 RID: 1382 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6000566")]
[Address(RVA = "0x26C9960", Offset = "0x26C8760", VA = "0x1826C9960", Slot = "3")]
public override string ToString()
{
return null;
}
/// <summary>Converts the value of this instance to its equivalent string representation (either "True" or "False").</summary>
/// <param name="provider">(Reserved) An <see cref="T:System.IFormatProvider" /> object.</param>
/// <returns>
/// <see cref="F:System.Boolean.TrueString" /> if the value of this instance is <see langword="true" />, or <see cref="F:System.Boolean.FalseString" /> if the value of this instance is <see langword="false" />.</returns>
// Token: 0x06000567 RID: 1383 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6000567")]
[Address(RVA = "0x26C9920", Offset = "0x26C8720", VA = "0x1826C9920", Slot = "20")]
public string ToString(IFormatProvider provider)
{
return null;
}
/// <summary>Returns a value indicating whether this instance is equal to a specified object.</summary>
/// <param name="obj">An object to compare to this instance.</param>
/// <returns>
/// <see langword="true" /> if <paramref name="obj" /> is a <see cref="T:System.Boolean" /> and has the same value as this instance; otherwise, <see langword="false" />.</returns>
// Token: 0x06000568 RID: 1384 RVA: 0x000044A0 File Offset: 0x000026A0
[Token(Token = "0x6000568")]
[Address(RVA = "0x26C9100", Offset = "0x26C7F00", VA = "0x1826C9100", Slot = "0")]
public override bool Equals(object obj)
{
return default(bool);
}
/// <summary>Returns a value indicating whether this instance is equal to a specified <see cref="T:System.Boolean" /> object.</summary>
/// <param name="obj">A <see cref="T:System.Boolean" /> value to compare to this instance.</param>
/// <returns>
/// <see langword="true" /> if <paramref name="obj" /> has the same value as this instance; otherwise, <see langword="false" />.</returns>
// Token: 0x06000569 RID: 1385 RVA: 0x000044B8 File Offset: 0x000026B8
[Token(Token = "0x6000569")]
[Address(RVA = "0x26C9190", Offset = "0x26C7F90", VA = "0x1826C9190", Slot = "23")]
public bool Equals(bool obj)
{
return default(bool);
}
/// <summary>Compares this instance to a specified object and returns an integer that indicates their relationship to one another.</summary>
/// <param name="obj">An object to compare to this instance, or <see langword="null" />.</param>
/// <returns>A signed integer that indicates the relative order of this instance and <paramref name="obj" />.
/// Return Value
///
/// Condition
///
/// Less than zero
///
/// This instance is <see langword="false" /> and <paramref name="obj" /> is <see langword="true" />.
///
/// Zero
///
/// This instance and <paramref name="obj" /> are equal (either both are <see langword="true" /> or both are <see langword="false" />).
///
/// Greater than zero
///
/// This instance is <see langword="true" /> and <paramref name="obj" /> is <see langword="false" />.
///
/// -or-
///
/// <paramref name="obj" /> is <see langword="null" />.</returns>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="obj" /> is not a <see cref="T:System.Boolean" />.</exception>
// Token: 0x0600056A RID: 1386 RVA: 0x000044D0 File Offset: 0x000026D0
[Token(Token = "0x600056A")]
[Address(RVA = "0x26C9010", Offset = "0x26C7E10", VA = "0x1826C9010", Slot = "4")]
public int CompareTo(object obj)
{
return 0;
}
/// <summary>Compares this instance to a specified <see cref="T:System.Boolean" /> object and returns an integer that indicates their relationship to one another.</summary>
/// <param name="value">A <see cref="T:System.Boolean" /> object to compare to this instance.</param>
/// <returns>A signed integer that indicates the relative values of this instance and <paramref name="value" />.
/// Return Value
///
/// Condition
///
/// Less than zero
///
/// This instance is <see langword="false" /> and <paramref name="value" /> is <see langword="true" />.
///
/// Zero
///
/// This instance and <paramref name="value" /> are equal (either both are <see langword="true" /> or both are <see langword="false" />).
///
/// Greater than zero
///
/// This instance is <see langword="true" /> and <paramref name="value" /> is <see langword="false" />.</returns>
// Token: 0x0600056B RID: 1387 RVA: 0x000044E8 File Offset: 0x000026E8
[Token(Token = "0x600056B")]
[Address(RVA = "0x26C8FF0", Offset = "0x26C7DF0", VA = "0x1826C8FF0", Slot = "22")]
public int CompareTo(bool value)
{
return 0;
}
/// <summary>Converts the specified string representation of a logical value to its <see cref="T:System.Boolean" /> equivalent.</summary>
/// <param name="value">A string containing the value to convert.</param>
/// <returns>
/// <see langword="true" /> if <paramref name="value" /> is equivalent to <see cref="F:System.Boolean.TrueString" />; <see langword="false" /> if <paramref name="value" /> is equivalent to <see cref="F:System.Boolean.FalseString" />.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="value" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.FormatException">
/// <paramref name="value" /> is not equivalent to <see cref="F:System.Boolean.TrueString" /> or <see cref="F:System.Boolean.FalseString" />.</exception>
// Token: 0x0600056C RID: 1388 RVA: 0x00004500 File Offset: 0x00002700
[Token(Token = "0x600056C")]
[Address(RVA = "0x26C91B0", Offset = "0x26C7FB0", VA = "0x1826C91B0")]
public static bool Parse(string value)
{
return default(bool);
}
/// <summary>Tries to convert the specified string representation of a logical value to its <see cref="T:System.Boolean" /> equivalent. A return value indicates whether the conversion succeeded or failed.</summary>
/// <param name="value">A string containing the value to convert.</param>
/// <param name="result">When this method returns, if the conversion succeeded, contains <see langword="true" /> if <paramref name="value" /> is equal to <see cref="F:System.Boolean.TrueString" /> or <see langword="false" /> if <paramref name="value" /> is equal to <see cref="F:System.Boolean.FalseString" />. If the conversion failed, contains <see langword="false" />. The conversion fails if <paramref name="value" /> is <see langword="null" /> or is not equal to the value of either the <see cref="F:System.Boolean.TrueString" /> or <see cref="F:System.Boolean.FalseString" /> field.</param>
/// <returns>
/// <see langword="true" /> if <paramref name="value" /> was converted successfully; otherwise, <see langword="false" />.</returns>
// Token: 0x0600056D RID: 1389 RVA: 0x00004518 File Offset: 0x00002718
[Token(Token = "0x600056D")]
[Address(RVA = "0x26C9AD0", Offset = "0x26C88D0", VA = "0x1826C9AD0")]
public static bool TryParse(string value, out bool result)
{
return default(bool);
}
// Token: 0x0600056E RID: 1390 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600056E")]
[Address(RVA = "0x26C99A0", Offset = "0x26C87A0", VA = "0x1826C99A0")]
private static string TrimWhiteSpaceAndNull(string value)
{
return null;
}
/// <summary>Returns the type code for the <see cref="T:System.Boolean" /> value type.</summary>
/// <returns>The enumerated constant <see cref="F:System.TypeCode.Boolean" />.</returns>
// Token: 0x0600056F RID: 1391 RVA: 0x00004530 File Offset: 0x00002730
[Token(Token = "0x600056F")]
[Address(RVA = "0x53A4A0", Offset = "0x5392A0", VA = "0x18053A4A0", Slot = "5")]
public TypeCode GetTypeCode()
{
return TypeCode.Empty;
}
/// <summary>For a description of this member, see <see cref="M:System.IConvertible.ToBoolean(System.IFormatProvider)" />.</summary>
/// <param name="provider">This parameter is ignored.</param>
/// <returns>
/// <see langword="true" /> or <see langword="false" />.</returns>
// Token: 0x06000570 RID: 1392 RVA: 0x00004548 File Offset: 0x00002748
[Token(Token = "0x6000570")]
[Address(RVA = "0x26C92A0", Offset = "0x26C80A0", VA = "0x1826C92A0", Slot = "6")]
bool IConvertible.ToBoolean(IFormatProvider provider)
{
return default(bool);
}
/// <summary>This conversion is not supported. Attempting to use this method throws an <see cref="T:System.InvalidCastException" />.</summary>
/// <param name="provider">This parameter is ignored.</param>
/// <returns>This conversion is not supported. No value is returned.</returns>
/// <exception cref="T:System.InvalidCastException">You attempt to convert a <see cref="T:System.Boolean" /> value to a <see cref="T:System.Char" /> value. This conversion is not supported.</exception>
// Token: 0x06000571 RID: 1393 RVA: 0x00004560 File Offset: 0x00002760
[Token(Token = "0x6000571")]
[Address(RVA = "0x26C9310", Offset = "0x26C8110", VA = "0x1826C9310", Slot = "7")]
char IConvertible.ToChar(IFormatProvider provider)
{
return '\0';
}
/// <summary>For a description of this member, see <see cref="M:System.IConvertible.ToSByte(System.IFormatProvider)" />.</summary>
/// <param name="provider">This parameter is ignored.</param>
/// <returns>1 if this instance is <see langword="true" />; otherwise, 0.</returns>
// Token: 0x06000572 RID: 1394 RVA: 0x00004578 File Offset: 0x00002778
[Token(Token = "0x6000572")]
[Address(RVA = "0x26C96B0", Offset = "0x26C84B0", VA = "0x1826C96B0", Slot = "8")]
sbyte IConvertible.ToSByte(IFormatProvider provider)
{
return 0;
}
/// <summary>For a description of this member, see <see cref="M:System.IConvertible.ToByte(System.IFormatProvider)" />.</summary>
/// <param name="provider">This parameter is ignored.</param>
/// <returns>1 if the value of this instance is <see langword="true" />; otherwise, 0.</returns>
// Token: 0x06000573 RID: 1395 RVA: 0x00004590 File Offset: 0x00002790
[Token(Token = "0x6000573")]
[Address(RVA = "0x26C92B0", Offset = "0x26C80B0", VA = "0x1826C92B0", Slot = "9")]
byte IConvertible.ToByte(IFormatProvider provider)
{
return 0;
}
/// <summary>For a description of this member, see <see cref="M:System.IConvertible.ToInt16(System.IFormatProvider)" />.</summary>
/// <param name="provider">This parameter is ignored.</param>
/// <returns>1 if this instance is <see langword="true" />; otherwise, 0.</returns>
// Token: 0x06000574 RID: 1396 RVA: 0x000045A8 File Offset: 0x000027A8
[Token(Token = "0x6000574")]
[Address(RVA = "0x26C9590", Offset = "0x26C8390", VA = "0x1826C9590", Slot = "10")]
short IConvertible.ToInt16(IFormatProvider provider)
{
return 0;
}
/// <summary>For a description of this member, see <see cref="M:System.IConvertible.ToUInt16(System.IFormatProvider)" />.</summary>
/// <param name="provider">This parameter is ignored.</param>
/// <returns>1 if this instance is <see langword="true" />; otherwise, 0.</returns>
// Token: 0x06000575 RID: 1397 RVA: 0x000045C0 File Offset: 0x000027C0
[Token(Token = "0x6000575")]
[Address(RVA = "0x26C9800", Offset = "0x26C8600", VA = "0x1826C9800", Slot = "11")]
ushort IConvertible.ToUInt16(IFormatProvider provider)
{
return 0;
}
/// <summary>For a description of this member, see <see cref="M:System.IConvertible.ToInt32(System.IFormatProvider)" />.</summary>
/// <param name="provider">This parameter is ignored.</param>
/// <returns>1 if this instance is <see langword="true" />; otherwise, 0.</returns>
// Token: 0x06000576 RID: 1398 RVA: 0x000045D8 File Offset: 0x000027D8
[Token(Token = "0x6000576")]
[Address(RVA = "0x26C95F0", Offset = "0x26C83F0", VA = "0x1826C95F0", Slot = "12")]
int IConvertible.ToInt32(IFormatProvider provider)
{
return 0;
}
/// <summary>For a description of this member, see <see cref="M:System.IConvertible.ToUInt32(System.IFormatProvider)" />.</summary>
/// <param name="provider">This parameter is ignored.</param>
/// <returns>1 if this instance is <see langword="true" />; otherwise, 0.</returns>
// Token: 0x06000577 RID: 1399 RVA: 0x000045F0 File Offset: 0x000027F0
[Token(Token = "0x6000577")]
[Address(RVA = "0x26C9860", Offset = "0x26C8660", VA = "0x1826C9860", Slot = "13")]
uint IConvertible.ToUInt32(IFormatProvider provider)
{
return 0U;
}
/// <summary>For a description of this member, see <see cref="M:System.IConvertible.ToInt64(System.IFormatProvider)" />.</summary>
/// <param name="provider">This parameter is ignored.</param>
/// <returns>1 if this instance is <see langword="true" />; otherwise, 0.</returns>
// Token: 0x06000578 RID: 1400 RVA: 0x00004608 File Offset: 0x00002808
[Token(Token = "0x6000578")]
[Address(RVA = "0x26C9650", Offset = "0x26C8450", VA = "0x1826C9650", Slot = "14")]
long IConvertible.ToInt64(IFormatProvider provider)
{
return 0L;
}
/// <summary>For a description of this member, see <see cref="M:System.IConvertible.ToUInt64(System.IFormatProvider)" />.</summary>
/// <param name="provider">This parameter is ignored.</param>
/// <returns>1 if this instance is <see langword="true" />; otherwise, 0.</returns>
// Token: 0x06000579 RID: 1401 RVA: 0x00004620 File Offset: 0x00002820
[Token(Token = "0x6000579")]
[Address(RVA = "0x26C98C0", Offset = "0x26C86C0", VA = "0x1826C98C0", Slot = "15")]
ulong IConvertible.ToUInt64(IFormatProvider provider)
{
return 0UL;
}
/// <summary>For a description of this member, see <see cref="M:System.IConvertible.ToSingle(System.IFormatProvider)" />.</summary>
/// <param name="provider">This parameter is ignored.</param>
/// <returns>1 if this instance is <see langword="true" />; otherwise, 0.</returns>
// Token: 0x0600057A RID: 1402 RVA: 0x00004638 File Offset: 0x00002838
[Token(Token = "0x600057A")]
[Address(RVA = "0x26C9710", Offset = "0x26C8510", VA = "0x1826C9710", Slot = "16")]
float IConvertible.ToSingle(IFormatProvider provider)
{
return 0f;
}
/// <summary>For a description of this member, see <see cref="M:System.IConvertible.ToDouble(System.IFormatProvider)" />.</summary>
/// <param name="provider">This parameter is ignored.</param>
/// <returns>1 if this instance is <see langword="true" />; otherwise, 0.</returns>
// Token: 0x0600057B RID: 1403 RVA: 0x00004650 File Offset: 0x00002850
[Token(Token = "0x600057B")]
[Address(RVA = "0x26C9530", Offset = "0x26C8330", VA = "0x1826C9530", Slot = "17")]
double IConvertible.ToDouble(IFormatProvider provider)
{
return 0.0;
}
/// <summary>For a description of this member, see <see cref="M:System.IConvertible.ToDecimal(System.IFormatProvider)" />.</summary>
/// <param name="provider">This parameter is ignored.</param>
/// <returns>1 if this instance is <see langword="true" />; otherwise, 0.</returns>
// Token: 0x0600057C RID: 1404 RVA: 0x00004668 File Offset: 0x00002868
[Token(Token = "0x600057C")]
[Address(RVA = "0x26C94B0", Offset = "0x26C82B0", VA = "0x1826C94B0", Slot = "18")]
decimal IConvertible.ToDecimal(IFormatProvider provider)
{
return 0m;
}
/// <summary>This conversion is not supported. Attempting to use this method throws an <see cref="T:System.InvalidCastException" />.</summary>
/// <param name="provider">This parameter is ignored.</param>
/// <returns>This conversion is not supported. No value is returned.</returns>
/// <exception cref="T:System.InvalidCastException">You attempt to convert a <see cref="T:System.Boolean" /> value to a <see cref="T:System.DateTime" /> value. This conversion is not supported.</exception>
// Token: 0x0600057D RID: 1405 RVA: 0x00004680 File Offset: 0x00002880
[Token(Token = "0x600057D")]
[Address(RVA = "0x26C93E0", Offset = "0x26C81E0", VA = "0x1826C93E0", Slot = "19")]
DateTime IConvertible.ToDateTime(IFormatProvider provider)
{
return default(DateTime);
}
/// <summary>For a description of this member, see <see cref="M:System.IConvertible.ToType(System.Type,System.IFormatProvider)" />.</summary>
/// <param name="type">The desired type.</param>
/// <param name="provider">An <see cref="T:System.IFormatProvider" /> implementation that supplies culture-specific information about the format of the returned value.</param>
/// <returns>An object of the specified type, with a value that is equivalent to the value of this <see langword="Boolean" /> object.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="type" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.InvalidCastException">The requested type conversion is not supported.</exception>
// Token: 0x0600057E RID: 1406 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600057E")]
[Address(RVA = "0x26C9770", Offset = "0x26C8570", VA = "0x1826C9770", Slot = "21")]
object IConvertible.ToType(Type type, IFormatProvider provider)
{
return null;
}
// Token: 0x04000215 RID: 533
[global::Cpp2IlInjected.FieldOffset(Offset = "0x0")]
[Token(Token = "0x4000215")]
private bool m_value;
// Token: 0x04000216 RID: 534
[Token(Token = "0x4000216")]
internal const int True = 1;
// Token: 0x04000217 RID: 535
[Token(Token = "0x4000217")]
internal const int False = 0;
// Token: 0x04000218 RID: 536
[Token(Token = "0x4000218")]
internal const string TrueLiteral = "True";
// Token: 0x04000219 RID: 537
[Token(Token = "0x4000219")]
internal const string FalseLiteral = "False";
/// <summary>Represents the Boolean value <see langword="true" /> as a string. This field is read-only.</summary>
// Token: 0x0400021A RID: 538
[Token(Token = "0x400021A")]
public static readonly string TrueString;
/// <summary>Represents the Boolean value <see langword="false" /> as a string. This field is read-only.</summary>
// Token: 0x0400021B RID: 539
[Token(Token = "0x400021B")]
public static readonly string FalseString;
}
}