private const string seldc = "dbo.seldc";
  public DataSet dbdc(SqlParameter par)
    {
        mycon = cf.conn();
        cf.Open();
        myds = new DataSet();
        mycmd = new SqlCommand(seldc,mycon);
   mycmd.CommandType= CommandType.StoredProcedure;
        myda.SelectCommand = mycmd;
      
        myda.SelectCommand.Parameters.Add(par);
        myda.Fill(myds);
        return myds;    }
为什么提示说myda.SelectCommand = mycmd;这行未将对象引用到事例?