c# - Compare a string row -


Let's say I have a string that looks like this:

  string Widththtr = "0086; 0086; 0086; 0086; 0086; 0086; 0086; 0086; 0085;";   

And then I'm picking up the first number:

  firstrollwidth = widthpad left. Substrings (0, 4);   

I have a question: is it possible to compare data that I found with the row below ( FirstRollWidthStr = WidthPadLeft.Substring (0, 4); ) With the rest?

from FirstRollWidthStr = WidthPadLeft.Substring (0, 4); I got: 0086. And the string WidthStr has more numbers, and the final number is 0085, so it is different from 0086, so I want to select the numbers which are different from the first number.

  var number = width SRT (';'). Select (Double Purses). .Distinct () toArray ();   

Or if you need a number different from the numbers first (continue the previous code):

  var otherNumbers = numbers.Skip (1) . (Numbers.Take (1));    

Comments