Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

164 lines
8.1 KiB
C#

using System;
using System.Diagnostics;
using Cpp2IlInjected;
namespace System
{
/// <summary>Represents a value type that can be assigned <see langword="null" />.</summary>
/// <typeparam name="T">The underlying value type of the <see cref="T:System.Nullable`1" /> generic type.</typeparam>
// Token: 0x0200018F RID: 399
[Token(Token = "0x200018F")]
[DebuggerStepThrough]
[Serializable]
public struct Nullable<T> where T : struct
{
/// <summary>Initializes a new instance of the <see cref="T:System.Nullable`1" /> structure to the specified value.</summary>
/// <param name="value">A value type.</param>
// Token: 0x06000FB7 RID: 4023 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000FB7")]
[Address(RVA = "0x30FC8E0", Offset = "0x30FB8E0", VA = "0x1830FC8E0")]
public Nullable(T value)
{
}
/// <summary>Gets a value indicating whether the current <see cref="T:System.Nullable`1" /> object has a valid value of its underlying type.</summary>
/// <returns>
/// <see langword="true" /> if the current <see cref="T:System.Nullable`1" /> object has a value; <see langword="false" /> if the current <see cref="T:System.Nullable`1" /> object has no value.</returns>
// Token: 0x1700017D RID: 381
// (get) Token: 0x06000FB8 RID: 4024 RVA: 0x0000CCC0 File Offset: 0x0000AEC0
[Token(Token = "0x1700017D")]
public bool HasValue
{
[Token(Token = "0x6000FB8")]
[Address(RVA = "0x844BB0", Offset = "0x843BB0", VA = "0x180844BB0")]
get
{
return default(bool);
}
}
/// <summary>Gets the value of the current <see cref="T:System.Nullable`1" /> object if it has been assigned a valid underlying value.</summary>
/// <returns>The value of the current <see cref="T:System.Nullable`1" /> object if the <see cref="P:System.Nullable`1.HasValue" /> property is <see langword="true" />. An exception is thrown if the <see cref="P:System.Nullable`1.HasValue" /> property is <see langword="false" />.</returns>
/// <exception cref="T:System.InvalidOperationException">The <see cref="P:System.Nullable`1.HasValue" /> property is <see langword="false" />.</exception>
// Token: 0x1700017E RID: 382
// (get) Token: 0x06000FB9 RID: 4025 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x1700017E")]
public T Value
{
[Token(Token = "0x6000FB9")]
[Address(RVA = "0x30FE0F0", Offset = "0x30FD0F0", VA = "0x1830FE0F0")]
get
{
return null;
}
}
/// <summary>Indicates whether the current <see cref="T:System.Nullable`1" /> object is equal to a specified object.</summary>
/// <param name="other">An object.</param>
/// <returns>
/// <see langword="true" /> if the <paramref name="other" /> parameter is equal to the current <see cref="T:System.Nullable`1" /> object; otherwise, <see langword="false" />.
/// This table describes how equality is defined for the compared values:
/// Return Value
///
/// Description
///
/// <see langword="true" /> The <see cref="P:System.Nullable`1.HasValue" /> property is <see langword="false" />, and the <paramref name="other" /> parameter is <see langword="null" />. That is, two null values are equal by definition.
///
/// -or-
///
/// The <see cref="P:System.Nullable`1.HasValue" /> property is <see langword="true" />, and the value returned by the <see cref="P:System.Nullable`1.Value" /> property is equal to the <paramref name="other" /> parameter.
///
/// <see langword="false" /> The <see cref="P:System.Nullable`1.HasValue" /> property for the current <see cref="T:System.Nullable`1" /> structure is <see langword="true" />, and the <paramref name="other" /> parameter is <see langword="null" />.
///
/// -or-
///
/// The <see cref="P:System.Nullable`1.HasValue" /> property for the current <see cref="T:System.Nullable`1" /> structure is <see langword="false" />, and the <paramref name="other" /> parameter is not <see langword="null" />.
///
/// -or-
///
/// The <see cref="P:System.Nullable`1.HasValue" /> property for the current <see cref="T:System.Nullable`1" /> structure is <see langword="true" />, and the value returned by the <see cref="P:System.Nullable`1.Value" /> property is not equal to the <paramref name="other" /> parameter.</returns>
// Token: 0x06000FBA RID: 4026 RVA: 0x0000CCD8 File Offset: 0x0000AED8
[Token(Token = "0x6000FBA")]
[Address(RVA = "0x2CDB260", Offset = "0x2CDA260", VA = "0x182CDB260", Slot = "0")]
public override bool Equals(object other)
{
return default(bool);
}
// Token: 0x06000FBB RID: 4027 RVA: 0x0000CCF0 File Offset: 0x0000AEF0
[Token(Token = "0x6000FBB")]
[Address(RVA = "0x2CDB900", Offset = "0x2CDA900", VA = "0x182CDB900")]
private bool Equals(T? other)
{
return default(bool);
}
/// <summary>Retrieves the hash code of the object returned by the <see cref="P:System.Nullable`1.Value" /> property.</summary>
/// <returns>The hash code of the object returned by the <see cref="P:System.Nullable`1.Value" /> property if the <see cref="P:System.Nullable`1.HasValue" /> property is <see langword="true" />, or zero if the <see cref="P:System.Nullable`1.HasValue" /> property is <see langword="false" />.</returns>
// Token: 0x06000FBC RID: 4028 RVA: 0x0000CD08 File Offset: 0x0000AF08
[Token(Token = "0x6000FBC")]
[Address(RVA = "0x2CDBDD0", Offset = "0x2CDADD0", VA = "0x182CDBDD0", Slot = "2")]
public override int GetHashCode()
{
return 0;
}
/// <summary>Retrieves the value of the current <see cref="T:System.Nullable`1" /> object, or the default value of the underlying type.</summary>
/// <returns>The value of the <see cref="P:System.Nullable`1.Value" /> property if the <see cref="P:System.Nullable`1.HasValue" /> property is <see langword="true" />; otherwise, the default value of the underlying type.</returns>
// Token: 0x06000FBD RID: 4029 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6000FBD")]
[Address(RVA = "0x5C1530", Offset = "0x5C0530", VA = "0x1805C1530")]
public T GetValueOrDefault()
{
return null;
}
/// <summary>Retrieves the value of the current <see cref="T:System.Nullable`1" /> object, or the specified default value.</summary>
/// <param name="defaultValue">A value to return if the <see cref="P:System.Nullable`1.HasValue" /> property is <see langword="false" />.</param>
/// <returns>The value of the <see cref="P:System.Nullable`1.Value" /> property if the <see cref="P:System.Nullable`1.HasValue" /> property is <see langword="true" />; otherwise, the <paramref name="defaultValue" /> parameter.</returns>
// Token: 0x06000FBE RID: 4030 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6000FBE")]
[Address(RVA = "0x30F96A0", Offset = "0x30F86A0", VA = "0x1830F96A0")]
public T GetValueOrDefault(T defaultValue)
{
return null;
}
/// <summary>Returns the text representation of the value of the current <see cref="T:System.Nullable`1" /> object.</summary>
/// <returns>The text representation of the value of the current <see cref="T:System.Nullable`1" /> object if the <see cref="P:System.Nullable`1.HasValue" /> property is <see langword="true" />, or an empty string ("") if the <see cref="P:System.Nullable`1.HasValue" /> property is <see langword="false" />.</returns>
// Token: 0x06000FBF RID: 4031 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6000FBF")]
[Address(RVA = "0x2CDC950", Offset = "0x2CDB950", VA = "0x182CDC950", Slot = "3")]
public override string ToString()
{
return null;
}
// Token: 0x06000FC0 RID: 4032 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6000FC0")]
[Address(RVA = "0x2CDA520", Offset = "0x2CD9520", VA = "0x182CDA520")]
private static object Box(T? o)
{
return null;
}
// Token: 0x06000FC1 RID: 4033 RVA: 0x0000CD20 File Offset: 0x0000AF20
[Token(Token = "0x6000FC1")]
[Address(RVA = "0x2CDD400", Offset = "0x2CDC400", VA = "0x182CDD400")]
private static T? Unbox(object o)
{
return null;
}
// Token: 0x0400064B RID: 1611
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x400064B")]
internal T value;
// Token: 0x0400064C RID: 1612
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x400064C")]
internal bool has_value;
}
}