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