private static bool isSpecialSubsetCase(string regexToCheck, ArrayList permList)
{
foreach (object obj2 in permList)
{
DelayedRegex regex = obj2 as DelayedRegex;
if (regex != null)
{
if (string.Compare(regexToCheck, regex.ToString(), StringComparison.OrdinalIgnoreCase) == 0)
{
return(true);
}
}
else
{
Uri uri = obj2 as Uri;
if (uri != null)
{
if (string.Compare(regexToCheck, Regex.Escape(uri.GetComponents(UriComponents.HttpRequestUrl, UriFormat.UriEscaped)), StringComparison.OrdinalIgnoreCase) == 0)
{
return(true);
}
}
else if (string.Compare(regexToCheck, Regex.Escape(obj2.ToString()), StringComparison.OrdinalIgnoreCase) == 0)
{
return(true);
}
}
}
return(false);
}