There is a list called cardReaderHistory . That contains some time records in ordered fashion as follows,
InTime1
OutTime1
InTime2
OutTime2
InTime3
OutTime3
InTime4
OutTime4…..furthermore..
What I need is Calculate Working time by (OutTime1 – Intime1) + (OutTime1 – Intime1)…..
double
How could I do this in C#…????
double hr = ((outTime1 - inTime1)+(OutTime2 - Intime2)+...);
Thank you..
Poor Beginner
You can filter the input sequence based on the index, and then zip the two sequences:
If you don’t need the intermediary values, you can also do this: