|M| 看了别人的SqlHelp 小弟我也想自己写一个 但他的报错不知道如何写 Reflector.exe看不是很清楚

|M| 看了别人的SqlHelp 我也想自己写一个 但他的报错不知道怎么写 Reflector.exe看不是很清楚
if   (connection   ==   null)
        {
                throw   new   ArgumentNullException( "connection ");
        }
---------------------------------
public   ArgumentNullException(string   paramName)   :   base(Environment.GetResourceString( "ArgumentNull_Generic "),   paramName)
{
        base.SetErrorCode(-2147467261);
}

------------------------------------
我一般是写
  if   (connection   ==   null)
        {
                throw   new   Exception( "未建立数据库连接 ");
        }
--------------------------------------
然后我想实现和他一样的效果我还要加写哪些东西

谢谢

------解决方案--------------------
直接throw,ArgumentNullException是system定义好的
if (connection == null)
{
throw new ArgumentNullException( "connection ");
}
------解决方案--------------------
原来framework已经定义好的。

没看清....
------解决方案--------------------
up
------解决方案--------------------
mark