/// <summary>This function returns true, if this PageList contains page with the same title /// and same revision ID with page passed as a parameter. Before comparison this function /// corrects all namespace prefixes in this PageList and in title of Page passed /// as a parameter.</summary> /// <param name="page">Page object to search for in this PageList.</param> /// <returns>Returns bool value.</returns> public bool Contains(Page page) { page.CorrectNsPrefix(); CorrectNsPrefixes(); foreach (Page p in pages) if (p.title == page.title && p.revision == page.revision) return true; return false; }