Class LinksRestriction
The established uint restriction; null parts match any value.
public sealed record LinksRestriction : IEquatable<LinksRestriction>
- Inheritance
-
LinksRestriction
- Implements
- Inherited Members
Constructors
LinksRestriction(IReadOnlyList<uint?>)
The established uint restriction; null parts match any value.
public LinksRestriction(IReadOnlyList<uint?> Parts)
Parameters
PartsIReadOnlyList<uint?>
Fields
AnyPart
public const string AnyPart = "*"
Field Value
Properties
All
public static LinksRestriction All { get; }
Property Value
Parts
public IReadOnlyList<uint?> Parts { get; init; }
Property Value
Methods
Equals(LinksRestriction?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(LinksRestriction? other)
Parameters
otherLinksRestrictionAn object to compare with this object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
Matches(Link<uint>)
public bool Matches(Link<uint> link)
Parameters
linkLink<uint>
Returns
Of(params uint?[])
public static LinksRestriction Of(params uint?[] parts)
Parameters
partsuint?[]
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.