[英]I want to split the data in the list when i see the ; in C#
I need to split this data in the box to and add it to new line when it see the ";"我需要将框中的这些数据拆分为,并在看到“;”时将其添加到新行
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);
To split a string when some character occours, you can use:要在出现某些字符时拆分字符串,您可以使用:
myString.split(';');
and make the result of this be inside a array.并使这个结果在一个数组中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.