日期:2014-05-17 浏览次数:20939 次
DataRow[] drArr = DtCustMailList.Select("Custid='" + CustID + "'");
if (drArr.Length == 0)
{ return; }
int drRow = 0;
string[] sendto = new string[drArr.Length];
foreach(DataRow dra in drArr)
{
sendto[drRow] = dra["CustMailAddress"].ToString();
drRow++;
}
string[] sendto = drArr.Select(row => row["CustMailAddress"].ToString()).ToArray();
var sendto = DtCustMailList.AsEnumerable().Where(p => p.Field<string>("Custid") == CustID).Select(p => p.Field<string>("CustMailAddress"));
DataRow[] drArr = DtCustMailList.Select("Custid='" + CustID + "'");
if (drArr.Length == 0)
{ return; }
int drRow = 0;
string[] sendto = new string[drArr.Length];
for(int i=0;i<drArr.Length;i++)
{
sendto[i] = drArr[i]["CustMailAddress"].ToString();
}