So List<DataCandle> dataReverse = this.data;
essentially is assigning a reference to the list in this.data
. So, this.data
and dataReversed
will be the same exact list. If you run .Reverse()
on dataReverse
then the list referenced in this.data
will be reversed also, again, because the both are the same exact list.
Okay, so how I get dataReversed to be reversed without reversing this.data?
Thanks for your answer btw
C# devs
null reference exceptions