Esempio n. 1
0
 /// <summary>This function returns true, if a page with specified title exists
 /// in this PageList.</summary>
 /// <param name="title">Title of page to check.</param>
 /// <returns>Returns bool value.</returns>
 public bool Contains(string title)
 {
     Page page = new Page(site, title);
     page.CorrectNSPrefix();
     CorrectNSPrefixes();
     foreach (Page p in pages)
         if (p.title == page.title)
             return true;
     return false;
 }
Esempio n. 2
0
 /// <summary>This function returns true, if in this PageList there exists a page with
 /// the same title, as a page specified as a parameter.</summary>
 /// <param name="page">.</param>
 /// <returns>Returns bool value.</returns>
 public bool Contains(Page page)
 {
     page.CorrectNSPrefix();
     CorrectNSPrefixes();
     foreach (Page p in pages)
         if (p.title == page.title)
             return true;
     return false;
 }