List<int> ProcessStatusIds = Referral.ReferralSheet_ProcessStatusIDs; List<string> ProcessStatusOtherTexts = Referral.ReferralSheet_ProcessStatusOtherTexts; ProcessStatusIds.ForEach(delegate(int i) { if (i <= 7) { SetReportValue("ProcessStatusID" + i, CheckString); switch (i) { case 2: case 3: case 6: case 7: if (!String.IsNullOrEmpty(ProcessStatusOtherTexts[i])) { SetReportValue("ProcessStatusOtherTexts" + i, ProcessStatusOtherTexts[i]); } break; } } });
http://msdn.microsoft.com/en-us/library/bwabdf9z.aspx
沒有留言:
發佈留言