Click here to Skip to main content
15,936,337 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,

I have set of numbers found in a string separated by \r\n:

my string content looks like this:

1
2
3
5
4

I want to check if the number is in sequence and check also if there are missing numbers within

Thanks
Chaegie
Posted

1 solution

Have a look at at the solution here - you would need to convert the code into C#.
However, this should give you some ideas on how to achieve a solution to your problem.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900