I have a list of ID which is integer.
Those ID some part are sequence, some not.
For example, the IDs are 1, 2, 3, 4, 5, 7, 8, 9.
How can i show them become 1-5,7-9 using a function in vb.net or c#?
Thanks a lot.
I have a list of ID which is integer.
Those ID some part are sequence, some not.
For example, the IDs are 1, 2, 3, 4, 5, 7, 8, 9.
How can i show them become 1-5,7-9 using a function in vb.net or c#?
Thanks a lot.