BzReader.BrowseForm.IsCircularRedirect C# (CSharp) Метод

IsCircularRedirect() приватный Метод

Checks whether the specified page would be a circular redirect
private IsCircularRedirect ( PageInfo pi ) : bool
pi PageInfo Page to check for circular redirect
Результат bool
        private bool IsCircularRedirect(PageInfo pi)
        {
            // We need to generate the formatted content to know whether the topic is redirected

            pi.GetFormattedContent();

            if (!String.IsNullOrEmpty(pi.RedirectToTopic))
            {
                foreach (string s in autoRedirects)
                {
                    if (s.Equals(pi.RedirectToTopic, StringComparison.InvariantCultureIgnoreCase))
                    {
                        return true;
                    }
                }
            }

            return false;
        }