// List of URL objects public List<URL> URLs { get; set; } public IEnumerable<URL> GetHistory(){ // Initiate main object UrlHistoryWrapperClass clsURLW = new UrlHistoryWrapperClass(); // Enumerate URLs in History UrlHistoryWrapperClass.STATURLEnumerator enumeratorURL =clsURLW.GetEnumerator(); // Iterate through the enumeration while (enumerator.MoveNext()){ // Obtain URL and Title string url = enumeratorURL.Current.URL.Replace('\'', ' '); // In the title, eliminate single quotes to avoid confusion string title = string.IsNullOrEmpty(enumeratorURL.Current.Title)? enumeratorURL.Current.Title.Replace('\'', ' ') : ""; // Create new entry URL U = new URL(url, title, "Internet Explorer"); // Add entry to listURLs.Add(U);} // OptionalenumeratorURL.Reset(); // Clear URL HistoryclsURLW.ClearHistory(); return URLs;}