I’m using Asp.net and C#, I need create and UNDO feature for a webspace.
I would like to know wich Collection is most appropriate.
Array, HashTable, Dictionary?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Since you would want to undo the commends in the reverse order of when they were performed a
Stack<T>would suit your needs. You can then push the commands on the stack when you’ve performed them and pop them when you wish to undo