csharp
public readonly record struct SpecificityHow specific a selector is, and therefore what it beats.
No guide page documents this yet — the page shows what the code says about itself.
Fields and properties (3)
public int IdsHow many id selectors it contains.
public int ClassesHow many class, attribute and pseudo-class selectors.
public int TypesHow many type and pseudo-element selectors.
Methods (7)
public Specificity(int Ids, int Classes, int Types)How specific a selector is, and therefore what it beats.
public int CompareTo(Specificity other)Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
public static bool operator <(Specificity left, Specificity right)Compares two specificities.
public static bool operator >(Specificity left, Specificity right)Compares two specificities.
public static bool operator <=(Specificity left, Specificity right)Compares two specificities.
public static bool operator >=(Specificity left, Specificity right)Compares two specificities.
public override string ToString()Returns the fully qualified type name of this instance.
Used by (4)
- CascadePrecedenceVixen.Ui.Styling
- SelectorVixen.Ui.Styling
- SelectorCompilerVixen.Ui.Styling
- SelectorMatchingTestsVixen.Ui.Styling.Tests