I have a variable called X of type UNIT. This variable updates every couple of milliseconds.
In C# windows forms app I need to store data of this variable. Let's say at the first pause it was = 5. I need to create a list and store 5 then it changes to 7 then store 7 but if goes back to 5 again, ignore 5 since its already contained in my list
Then I need to access these variables from the list.