This is the code:
_fts = new List<int>();
for (int i = 0; i < LR.Count; i++)
{
_fts.Add(LR[i].start);
_fts.Add(LR[i].end);
}
In the end _fts have for example 15 numbers for example the first 4 indexs:
[0] 88
[1] 96
[2] 93
[3] 100
I need before im doing the adding: _fts.Add
I need to calculate somehow each two couple start and end and get the numbers between and add all this numbers to the _fts.
For example end is 96 and start 88 so I need to add to the _fts the numbers:
88 89 90 91 92 93 94 95 96
Then end is 100 and start is 93 so again add to _fts the numbers:
93 94 95 96 97 98 99 100
So now _fts will looks like:
88 89 90 91 92 93 94 95 96 93 94 95 96 97 98 99 100
If the number for example 93 and 94 appears twice it’s ok I need it this way since after it I parse the List and put it in directories …Never mind this part with the directories.
What I need to add the numbers in between each couple. And not only to add 88 and 96 or 93 and 100.
How can I do it ?
Like this?