AngleSharp by AngleSharp

<PackageReference Include="AngleSharp" Version="1.0.4" />

 Priority

A priority object for comparing priorities.
public static readonly Priority Inline

Gets the priority for having an inline element.

public static readonly Priority OneClass

Gets the priority for having a single class.

public static readonly Priority OneId

Gets the priority for having a single Id.

public static readonly Priority OneTag

Gets the priority for having a single tag.

public static readonly Priority Zero

Gets the lowest (zero) priority.

public byte Classes { get; }

Gets the number of classes for this priority.

public byte Ids { get; }

Gets the number of ids for this priority.

public byte Inlines { get; }

Gets the number of inlines for this priority.

public byte Tags { get; }

Gets the number of tags for this priority.

public Priority(uint priority)

Creates a new priority with the given hashcode.

public Priority(byte inlines, byte ids, byte classes, byte tags)

Creates a new priority with the given values.

public static Priority op_Addition(Priority a, Priority b)

Adds the two given priorities.

public static bool op_Equality(Priority a, Priority b)

Compares two priorities and returns a boolean indicating if the two do match.

public static bool op_GreaterThan(Priority a, Priority b)

Compares two priorities and returns a boolean indicating if the first one is greater.

public static bool op_GreaterThanOrEqual(Priority a, Priority b)

Compares two priorities and returns a boolean indicating if the first one is greater or equal.

public static bool op_Inequality(Priority a, Priority b)

Compares two priorities and returns a boolean indicating if the two do not match.

public static bool op_LessThan(Priority a, Priority b)

Compares two priorities and returns a boolean indicating if the second one is greater.

public static bool op_LessThanOrEqual(Priority a, Priority b)

Compares two priorities and returns a boolean indicating if the second one is greater or equal.

public int CompareTo(Priority other)

Compares the current priority with another priority.

public bool Equals(Priority other)

Checks two priorities for equality.