I have the following string which is read in from an external system.
var test = @"Order No.: 999
Customer ID:
Name:
Comment:
Position
Count 20.80"
I want to split by new lines
var result = test.Split(new string[] { @"
" }, StringSplitOptions.None);
There are two issues the above code does not work only one value is returned, the second issue is that there are differences in the new lines, is there a way I can split this using a different method?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…