出于某种原因,我的数组summary
和出现错误。有人知道发生了什么吗?subject
date
use of unassigned local variable
int count = 0;
string[] summary;
string[] subject;
string[] date;
foreach (SyndicationItem item in feed.Items)
{
subject[count] = item.Title.Text;
date[count] = item.PublishDate.DateTime.ToString();
summary[count] = item.Summary.Text;
list.InnerHtml += "<a href=\"#\" onclick\"showArticle(" + count + ");\"><li id=\"post" + count + "\"><b>" + subject[count] + "</b><br>" +
"<p id=\"posted-date\">Posted on: " + date[count] + "</p>" + "</li></a>";
count++;
}