Record a value in a List c#

  • Thread starter Thread starter Frankdot
  • Start date Start date
F

Frankdot

Guest
Hello,


I am looking for a method to record a value or keep it in an IEnumerable or a list.

My code has a variable x = 2 for example. At the end of the pipeline the process return y = 3. So when you input 2, Y = 3.

I want to keep the value of 3, store it in a list and than replace x by 3. Now that x = 3 , y will return a new answer like y = 5. Than store in the List (2, 3, 5 ...) Make x = 5 etc. Everytime Y return a new answer it is send back to X and the value of Y is kept in a list.


What method could allow me to do that?


Thank you

Continue reading...
 
Back
Top