private bool IsNamespaceSubsetOf(XmlQualifiedNameTest other) { return(other.IsNamespaceWildcard || (exclude == other.exclude && Namespace == other.Namespace) || (other.exclude && !exclude && Namespace != other.Namespace)); }
/// <summary> /// Return true if the result of intersection with other is not empty /// </summary> public bool HasIntersection(XmlQualifiedNameTest other) { return((IsNamespaceSubsetOf(other) || other.IsNamespaceSubsetOf(this)) && (IsNameSubsetOf(other) || other.IsNameSubsetOf(this))); }
private bool IsNameSubsetOf(XmlQualifiedNameTest other) { return(other.IsNameWildcard || Name == other.Name); }
/// <summary> /// True if this matches every QName other does /// </summary> public bool IsSubsetOf(XmlQualifiedNameTest other) { return(IsNameSubsetOf(other) && IsNamespaceSubsetOf(other)); }