C # uses double linked lists to simply simulate IE forward back function

Source: Internet
Author: User

A simple test of IE forward and backward process.

Access the site A,b,c,d in turn.

Back to B,

And then re-request the website E,

Then the record is saved in the order of A,b,e

C,d will be removed from the list of records.

Look at the code below (all of the following actions are in memory):

A History object that is used to generate a Record object that contains url,title,html three properties.

class History
    {
        private string Title_ = "";
        private string WmlSource_ = "";
        private string Url_ = "";
        public string Title
        {
            get { return Title_; }
            set { Title_ = value; }
        }
        public string WmlSource
        {
            get { return WmlSource_; }
            set { WmlSource_ = value; }
        }
        public string Url
        {
            get { return Url_; }
            set { Url_ = value; }
        }
        public History()
        {

        }
        public History(string t, string w, string u)
        {
            Title_ = t;
            WmlSource_ = w;
            Url_ = u;
        }
    }

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.