List Copy of other using c#

Hie,
I try create one list with the contain of other but it doesn´t function. I copy the code from internet but…
I have the list “misdias” and i wants to copy it to the list “misdiasreversed”
Could you help me?
Regards.

The misdiasreversed variable is still just an empty list. You initialize it but you don’t put anything in it.

You’ll to initialize it based on misdias after you have added the days. Then use Reverse: List<T>.Reverse Method (System.Collections.Generic) | Microsoft Learn

1 Like

Thanks so much!! I thought that how i called to “misdiasreversed” later than the assign the values to “misdias” it take it.
Regards.