晚報所有,C# - Store,然後更新屬性
我已經寫了需要進行更新,然後更新對應於更新日期轉學申請。即
string content = string.Empty;
IIvdManager manager;
DateTime configDate;
if (table == Tables.Asset)
{
content = WebService.GetTblAsset(companyId);
manager = ivdData.Instance.Asset;
configDate = ivdConfig.LAST_UPDATE_ASSET;
}
else if (table == Tables.Site)
{
content = WebService.GetTblSite(companyId);
manager = ivdData.Instance.Site;
configDate = ivdConfig.LAST_UPDATE_SITE;
}
else if (table...)
{
...
}
if (content.Length > 0)
{
if (UpdateManager(manager, content))
{
configDate = DateTime.Now;
}
}
我想要的是爲configDate屬性更新我的ivdConfig靜態類中相應的日期獲取/設置。
我該怎麼做?
我很困惑這裏... configDate不是一個屬性。它似乎是一個局部變量。 – 2009-02-16 21:56:02
是的,它是 - 我知道它不工作,但我需要一種方法,使其能夠更新其他靜態ivdConfig類中的日期 – GenericTypeTea 2009-02-16 22:18:36