陈斌彬的技术博客

Stay foolish,stay hungry

DBNull

using System.Runtime.InteropServices;
using System.Runtime.Serialization;

namespace System
{
    // 摘要:
    //     表示不存在的值。无法继承此类。
    [Serializable]
    [ComVisible(true)]
    public sealed class DBNull : ISerializable, IConvertible
    {
        // 摘要:
        //     表示 System.DBNull 类的唯一实例。
        public static readonly DBNull Value;

        // 摘要:
        //     实现 System.Runtime.Serialization.ISerializable 接口并返回序列化 System.DBNull 对象所需的数据。
        //
        // 参数:
        //   info:
        //     System.Runtime.Serialization.SerializationInfo 对象,包含序列化 System.DBNull 对象所需的信息。
        //
        //   context:
        //     System.Runtime.Serialization.StreamingContext 对象,包含与 System.DBNull 对象关联的序列化流的源和目标。
        //
        // 异常:
        //   System.ArgumentNullException:
        //     info 为 null。
        public void GetObjectData(SerializationInfo info, StreamingContext context);
        //
        // 摘要:
        //     获取 System.DBNull 的 System.TypeCode 值。
        //
        // 返回结果:
        //     System.DBNull(为 System.TypeCode.DBNull)的 System.TypeCode 值。
        public TypeCode GetTypeCode();
        //
        // 摘要:
        //     返回空字符串(System.String.Empty)。
        //
        // 返回结果:
        //     空字符串(System.String.Empty)。
        public override string ToString();
        //
        // 摘要:
        //     使用指定的 System.IFormatProvider 返回空字符串。
        //
        // 参数:
        //   provider:
        //     用于格式化返回值的 System.IFormatProvider。- 或 - 从操作系统的当前区域设置中获取格式信息的 null。
        //
        // 返回结果:
        //     空字符串(System.String.Empty)。
        public string ToString(IFormatProvider provider);
    }
}