我有一个类fore,里面定义了strName,strStation,还有几个数组,都是字符型变量:
        public string strName {get ;set ;}
        public string strStation{get ;set ;}
        public string[] strrain1 { get; set; }
        public string[] strRain2{get ;set ;}
        public string[] strTg{get ;set;}
        public string[] strTd { get; set; }
现在我在程序里引用这个类,并导入数据库内容
fore[] fcer = new fore[6];
for (int i = 0; i < intNameCount; i++)
            {
                fcer[i] = new fore();//将对象实例化
                fcer[i].strName = myds.Tables[0].Rows[i][2].ToString();
                fcer[i].strStation = myds.Tables[0].Rows[i][3].ToString();
                for (int j=0;j<3;j++)
                {
                    fcer[i].strrain1[j] = myds.Tables[0].Rows[i][4+j*4].ToString();
                    fcer[i].strRain2[j] = myds.Tables[0].Rows[i][5+j*4].ToString();
                    fcer[i].strTg[j] = myds.Tables[0].Rows[i][6 + j * 4].ToString();
                    fcer[i].strTd[j] = myds.Tables[0].Rows[i][7 + j * 4].ToString();
                }
            }
结果显示说fcer[i].strrain1[j]没有对象实例化,这里应该如何实例化呢?