System.Security.Util.LocalSiteString.IsSubsetOf C# (CSharp) Method

IsSubsetOf() public method

public IsSubsetOf ( LocalSiteString operand, bool ignoreCase ) : bool
operand LocalSiteString
ignoreCase bool
return bool
        public virtual bool IsSubsetOf( LocalSiteString operand, bool ignoreCase )
        {
            if (operand == null)
            {
                return false;
            }
            else if (operand.m_separatedSite.Count == 0)
            {
                return this.m_separatedSite.Count == 0 || this.m_separatedSite.Count > 0 && String.Compare( (String)this.m_separatedSite[0], "*", StringComparison.Ordinal) == 0;
            }
            else if (this.m_separatedSite.Count == 0)
            {
                return String.Compare( (String)operand.m_separatedSite[0], "*", StringComparison.Ordinal) == 0;
            }
            else
            {
                return base.IsSubsetOf( operand, ignoreCase );
            }
        }
    }

Same methods

LocalSiteString::IsSubsetOf ( LocalSiteString operand ) : bool