[英]I want to split the data in the list when i see the ; in C#
我需要將框中的這些數據拆分為,並在看到“;”時將其添加到新行
var retryParamInfo = new ExParamsContent
{
Idenitifier = tempIdentifier.SerialNumber,
Name = String.Format( "Retry Information Console {0}",i),
Value = MyTestRunGlobals.FixtureComponents[i].Uuts[0].RetryList,
//Value = thisUut.RetryList.Replace("\n", "\n" + Environment.NewLine),
};
uutTempInfo.ExParams.Add(retryParamInfo);
要在出現某些字符時拆分字符串,您可以使用:
myString.split(';');
並使這個結果在一個數組中。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.