NamespaceConstraint Struct
The namespace constraint of a type or attribute selector (https://drafts.csswg.org/selectors-4/#type-nmsp).
public readonly struct NamespaceConstraint : IEquatable<NamespaceConstraint>- Implements
Properties
| Name | Description |
|---|---|
| Any | Any namespace, including no namespace (*|E, or E without a default namespace). |
| Kind | Gets the kind of the constraint. |
| Namespace | The namespace when NamespaceConstraint.Kind is NamespaceConstraintKind.Specific, otherwise null. |
| None | No namespace (|E). |
Any
Selector.csAny namespace, including no namespace (*|E, or E without a default namespace).
public static NamespaceConstraint Any { get; }Property value
Kind
Selector.csNamespace
Selector.csThe namespace when NamespaceConstraint.Kind is NamespaceConstraintKind.Specific, otherwise null.
public string? Namespace { get; }Property value
None
Selector.csMethods
| Name | Description |
|---|---|
| Equals(NamespaceConstraint) | |
| Equals(object) | |
| GetHashCode() | |
| Matches(string?) | Returns whether the namespace (null for no namespace) satisfies the constraint. |
| Specific(string) | The namespace ns. |
| ToString() |
Equals overloads
Equals(NamespaceConstraint)
public bool Equals(NamespaceConstraint other)No documentation is available.
Equals(object)
GetHashCode()
Matches(string?)
Selector.csSpecific(string)
Selector.csThe namespace ns.
public static NamespaceConstraint Specific(string ns)ToString()
Operators
| Name | Description |
|---|---|
| operator ==(NamespaceConstraint, NamespaceConstraint) | |
| operator !=(NamespaceConstraint, NamespaceConstraint) |
operator ==(NamespaceConstraint, NamespaceConstraint)
public static bool operator ==(NamespaceConstraint left, NamespaceConstraint right)No documentation is available.
operator !=(NamespaceConstraint, NamespaceConstraint)
public static bool operator !=(NamespaceConstraint left, NamespaceConstraint right)No documentation is available.