I have dicionary strings and dates
private readonly Dictionary<string, DateTime>
as a private member variable in a class
I have methods that recursively get the next and previous value in a dictionary with a given key
eg. It takes the given key, searches for the database, if it is null, it gets the next, etc. Recursively. He does it both forward and backward.
I used this to get the following
Find the next entry in the set: LINQ
My question is: can I just add Reverse to the linq statement to do this backwards?
Obviously this will work, but I'm worried about the state in which it will leave a list of member variables in
i.e. will it be canceled? or was a copy made in reverse?
thank