Files
2026-06-04 11:42:34 +02:00

232 lines
14 KiB
C#

using System;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
namespace System
{
/// <summary>Represents a nonexistent value. This class cannot be inherited.</summary>
/// <filterpriority>1</filterpriority>
// Token: 0x02000651 RID: 1617
[ComVisible(true)]
[Serializable]
public sealed class DBNull : IConvertible, ISerializable
{
// Token: 0x06003D0B RID: 15627 RVA: 0x000CDA54 File Offset: 0x000CBC54
private DBNull()
{
}
// Token: 0x06003D0C RID: 15628 RVA: 0x000CDA5C File Offset: 0x000CBC5C
private DBNull(SerializationInfo info, StreamingContext context)
{
throw new NotSupportedException();
}
/// <summary>This conversion is not supported. Attempting to make this conversion throws an <see cref="T:System.InvalidCastException" />.</summary>
/// <returns>None. The return value for this member is not used.</returns>
/// <param name="provider">An object that implements the <see cref="T:System.IFormatProvider" /> interface. (This parameter is not used; specify null.)</param>
/// <exception cref="T:System.InvalidCastException">This conversion is not supported for the <see cref="T:System.DBNull" /> type.</exception>
// Token: 0x06003D0E RID: 15630 RVA: 0x000CDA78 File Offset: 0x000CBC78
bool IConvertible.ToBoolean(IFormatProvider provider)
{
throw new InvalidCastException();
}
/// <summary>This conversion is not supported. Attempting to make this conversion throws an <see cref="T:System.InvalidCastException" />.</summary>
/// <returns>None. The return value for this member is not used.</returns>
/// <param name="provider">An object that implements the <see cref="T:System.IFormatProvider" /> interface. (This parameter is not used; specify null.)</param>
/// <exception cref="T:System.InvalidCastException">This conversion is not supported for the <see cref="T:System.DBNull" /> type.</exception>
// Token: 0x06003D0F RID: 15631 RVA: 0x000CDA80 File Offset: 0x000CBC80
byte IConvertible.ToByte(IFormatProvider provider)
{
throw new InvalidCastException();
}
/// <summary>This conversion is not supported. Attempting to make this conversion throws an <see cref="T:System.InvalidCastException" />.</summary>
/// <returns>None. The return value for this member is not used.</returns>
/// <param name="provider">An object that implements the <see cref="T:System.IFormatProvider" /> interface. (This parameter is not used; specify null.)</param>
/// <exception cref="T:System.InvalidCastException">This conversion is not supported for the <see cref="T:System.DBNull" /> type.</exception>
// Token: 0x06003D10 RID: 15632 RVA: 0x000CDA88 File Offset: 0x000CBC88
char IConvertible.ToChar(IFormatProvider provider)
{
throw new InvalidCastException();
}
/// <summary>This conversion is not supported. Attempting to make this conversion throws an <see cref="T:System.InvalidCastException" />.</summary>
/// <returns>None. The return value for this member is not used.</returns>
/// <param name="provider">An object that implements the <see cref="T:System.IFormatProvider" /> interface. (This parameter is not used; specify null.)</param>
/// <exception cref="T:System.InvalidCastException">This conversion is not supported for the <see cref="T:System.DBNull" /> type.</exception>
// Token: 0x06003D11 RID: 15633 RVA: 0x000CDA90 File Offset: 0x000CBC90
DateTime IConvertible.ToDateTime(IFormatProvider provider)
{
throw new InvalidCastException();
}
/// <summary>This conversion is not supported. Attempting to make this conversion throws an <see cref="T:System.InvalidCastException" />.</summary>
/// <returns>None. The return value for this member is not used.</returns>
/// <param name="provider">An object that implements the <see cref="T:System.IFormatProvider" /> interface. (This parameter is not used; specify null.)</param>
/// <exception cref="T:System.InvalidCastException">This conversion is not supported for the <see cref="T:System.DBNull" /> type.</exception>
// Token: 0x06003D12 RID: 15634 RVA: 0x000CDA98 File Offset: 0x000CBC98
decimal IConvertible.ToDecimal(IFormatProvider provider)
{
throw new InvalidCastException();
}
/// <summary>This conversion is not supported. Attempting to make this conversion throws an <see cref="T:System.InvalidCastException" />.</summary>
/// <returns>None. The return value for this member is not used.</returns>
/// <param name="provider">An object that implements the <see cref="T:System.IFormatProvider" /> interface. (This parameter is not used; specify null.)</param>
/// <exception cref="T:System.InvalidCastException">This conversion is not supported for the <see cref="T:System.DBNull" /> type.</exception>
// Token: 0x06003D13 RID: 15635 RVA: 0x000CDAA0 File Offset: 0x000CBCA0
double IConvertible.ToDouble(IFormatProvider provider)
{
throw new InvalidCastException();
}
/// <summary>This conversion is not supported. Attempting to make this conversion throws an <see cref="T:System.InvalidCastException" />.</summary>
/// <returns>None. The return value for this member is not used.</returns>
/// <param name="provider">An object that implements the <see cref="T:System.IFormatProvider" /> interface. (This parameter is not used; specify null.)</param>
/// <exception cref="T:System.InvalidCastException">This conversion is not supported for the <see cref="T:System.DBNull" /> type.</exception>
// Token: 0x06003D14 RID: 15636 RVA: 0x000CDAA8 File Offset: 0x000CBCA8
short IConvertible.ToInt16(IFormatProvider provider)
{
throw new InvalidCastException();
}
/// <summary>This conversion is not supported. Attempting to make this conversion throws an <see cref="T:System.InvalidCastException" />.</summary>
/// <returns>None. The return value for this member is not used.</returns>
/// <param name="provider">An object that implements the <see cref="T:System.IFormatProvider" /> interface. (This parameter is not used; specify null.)</param>
/// <exception cref="T:System.InvalidCastException">This conversion is not supported for the <see cref="T:System.DBNull" /> type.</exception>
// Token: 0x06003D15 RID: 15637 RVA: 0x000CDAB0 File Offset: 0x000CBCB0
int IConvertible.ToInt32(IFormatProvider provider)
{
throw new InvalidCastException();
}
/// <summary>This conversion is not supported. Attempting to make this conversion throws an <see cref="T:System.InvalidCastException" />.</summary>
/// <returns>None. The return value for this member is not used.</returns>
/// <param name="provider">An object that implements the <see cref="T:System.IFormatProvider" /> interface. (This parameter is not used; specify null.)</param>
/// <exception cref="T:System.InvalidCastException">This conversion is not supported for the <see cref="T:System.DBNull" /> type.</exception>
// Token: 0x06003D16 RID: 15638 RVA: 0x000CDAB8 File Offset: 0x000CBCB8
long IConvertible.ToInt64(IFormatProvider provider)
{
throw new InvalidCastException();
}
/// <summary>This conversion is not supported. Attempting to make this conversion throws an <see cref="T:System.InvalidCastException" />.</summary>
/// <returns>None. The return value for this member is not used.</returns>
/// <param name="provider">An object that implements the <see cref="T:System.IFormatProvider" /> interface. (This parameter is not used; specify null.)</param>
/// <exception cref="T:System.InvalidCastException">This conversion is not supported for the <see cref="T:System.DBNull" /> type.</exception>
// Token: 0x06003D17 RID: 15639 RVA: 0x000CDAC0 File Offset: 0x000CBCC0
sbyte IConvertible.ToSByte(IFormatProvider provider)
{
throw new InvalidCastException();
}
/// <summary>This conversion is not supported. Attempting to make this conversion throws an <see cref="T:System.InvalidCastException" />.</summary>
/// <returns>None. The return value for this member is not used.</returns>
/// <param name="provider">An object that implements the <see cref="T:System.IFormatProvider" /> interface. (This parameter is not used; specify null.)</param>
/// <exception cref="T:System.InvalidCastException">This conversion is not supported for the <see cref="T:System.DBNull" /> type.</exception>
// Token: 0x06003D18 RID: 15640 RVA: 0x000CDAC8 File Offset: 0x000CBCC8
float IConvertible.ToSingle(IFormatProvider provider)
{
throw new InvalidCastException();
}
/// <summary>Converts the current <see cref="T:System.DBNull" /> object to the specified type.</summary>
/// <returns>The boxed equivalent of the current <see cref="T:System.DBNull" /> object, if that conversion is supported; otherwise, an exception is thrown and no value is returned. </returns>
/// <param name="type">The type to convert the current <see cref="T:System.DBNull" /> object to. </param>
/// <param name="provider">An object that implements the <see cref="T:System.IFormatProvider" /> interface and is used to augment the conversion. If null is specified, format information is obtained from the current culture. </param>
/// <exception cref="T:System.InvalidCastException">This conversion is not supported for the <see cref="T:System.DBNull" /> type.</exception>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="type" /> is null.</exception>
// Token: 0x06003D19 RID: 15641 RVA: 0x000CDAD0 File Offset: 0x000CBCD0
object IConvertible.ToType(Type targetType, IFormatProvider provider)
{
if (targetType == typeof(string))
{
return string.Empty;
}
if (targetType == typeof(DBNull))
{
return this;
}
throw new InvalidCastException();
}
/// <summary>This conversion is not supported. Attempting to make this conversion throws an <see cref="T:System.InvalidCastException" />.</summary>
/// <returns>None. The return value for this member is not used.</returns>
/// <param name="provider">An object that implements the <see cref="T:System.IFormatProvider" /> interface. (This parameter is not used; specify null.)</param>
/// <exception cref="T:System.InvalidCastException">This conversion is not supported for the <see cref="T:System.DBNull" /> type.</exception>
// Token: 0x06003D1A RID: 15642 RVA: 0x000CDB00 File Offset: 0x000CBD00
ushort IConvertible.ToUInt16(IFormatProvider provider)
{
throw new InvalidCastException();
}
/// <summary>This conversion is not supported. Attempting to make this conversion throws an <see cref="T:System.InvalidCastException" />.</summary>
/// <returns>None. The return value for this member is not used.</returns>
/// <param name="provider">An object that implements the <see cref="T:System.IFormatProvider" /> interface. (This parameter is not used; specify null.)</param>
/// <exception cref="T:System.InvalidCastException">This conversion is not supported for the <see cref="T:System.DBNull" /> type.</exception>
// Token: 0x06003D1B RID: 15643 RVA: 0x000CDB08 File Offset: 0x000CBD08
uint IConvertible.ToUInt32(IFormatProvider provider)
{
throw new InvalidCastException();
}
/// <summary>This conversion is not supported. Attempting to make this conversion throws an <see cref="T:System.InvalidCastException" />.</summary>
/// <returns>None. The return value for this member is not used.</returns>
/// <param name="provider">An object that implements the <see cref="T:System.IFormatProvider" /> interface. (This parameter is not used; specify null.)</param>
/// <exception cref="T:System.InvalidCastException">This conversion is not supported for the <see cref="T:System.DBNull" /> type.</exception>
// Token: 0x06003D1C RID: 15644 RVA: 0x000CDB10 File Offset: 0x000CBD10
ulong IConvertible.ToUInt64(IFormatProvider provider)
{
throw new InvalidCastException();
}
/// <summary>Implements the <see cref="T:System.Runtime.Serialization.ISerializable" /> interface and returns the data needed to serialize the <see cref="T:System.DBNull" /> object.</summary>
/// <param name="info">A <see cref="T:System.Runtime.Serialization.SerializationInfo" /> object containing information required to serialize the <see cref="T:System.DBNull" /> object. </param>
/// <param name="context">A <see cref="T:System.Runtime.Serialization.StreamingContext" /> object containing the source and destination of the serialized stream associated with the <see cref="T:System.DBNull" /> object. </param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="info" /> is null. </exception>
/// <filterpriority>2</filterpriority>
// Token: 0x06003D1D RID: 15645 RVA: 0x000CDB18 File Offset: 0x000CBD18
public void GetObjectData(SerializationInfo info, StreamingContext context)
{
UnitySerializationHolder.GetDBNullData(this, info, context);
}
/// <summary>Gets the <see cref="T:System.TypeCode" /> value for <see cref="T:System.DBNull" />.</summary>
/// <returns>The <see cref="T:System.TypeCode" /> value for <see cref="T:System.DBNull" />, which is <see cref="F:System.TypeCode.DBNull" />.</returns>
/// <filterpriority>2</filterpriority>
// Token: 0x06003D1E RID: 15646 RVA: 0x000CDB24 File Offset: 0x000CBD24
public TypeCode GetTypeCode()
{
return TypeCode.DBNull;
}
/// <summary>Returns an empty string (<see cref="F:System.String.Empty" />).</summary>
/// <returns>An empty string (<see cref="F:System.String.Empty" />).</returns>
/// <filterpriority>2</filterpriority>
// Token: 0x06003D1F RID: 15647 RVA: 0x000CDB28 File Offset: 0x000CBD28
public override string ToString()
{
return string.Empty;
}
/// <summary>Returns an empty string using the specified <see cref="T:System.IFormatProvider" />.</summary>
/// <returns>An empty string (<see cref="F:System.String.Empty" />).</returns>
/// <param name="provider">The <see cref="T:System.IFormatProvider" /> to be used to format the return value.-or- null to obtain the format information from the current locale setting of the operating system. </param>
/// <filterpriority>2</filterpriority>
// Token: 0x06003D20 RID: 15648 RVA: 0x000CDB30 File Offset: 0x000CBD30
public string ToString(IFormatProvider provider)
{
return string.Empty;
}
/// <summary>Represents the sole instance of the <see cref="T:System.DBNull" /> class.</summary>
/// <filterpriority>1</filterpriority>
// Token: 0x04001892 RID: 6290
public static readonly DBNull Value = new DBNull();
}
}