我必须在 c# 中拆分逗号分隔的字符串,并且需要将其保存在两个变量中。C#函数如下:
public int InsertLogDetails(string RunIDStartTime, int Distribution_ID, List<string> additions, List<string> removals, bool status, string ErrorMessage)
{
int Run_ID=0;
DateTime StartTime=DateTime.Now;
//Needs to split RunIDStartTime and needs to save it in Run_ID and StartTime
}
RunIDStartTime 保存 Run_ID 和 StartTime 的值。(例如:5,Jan 23 2013 9:31AM)
任何人请帮忙。提前致谢。