Table of Contents

Class LinksRestriction

Namespace
Foundation.Data.Doublets.Cli.Protocol
Assembly
Foundation.Data.Doublets.Cli.dll

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

Parts IReadOnlyList<uint?>

Fields

AnyPart

public const string AnyPart = "*"

Field Value

string

Properties

All

public static LinksRestriction All { get; }

Property Value

LinksRestriction

Parts

public IReadOnlyList<uint?> Parts { get; init; }

Property Value

IReadOnlyList<uint?>

Methods

Equals(LinksRestriction?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(LinksRestriction? other)

Parameters

other LinksRestriction

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

public bool Matches(Link<uint> link)

Parameters

link Link<uint>

Returns

bool

Of(params uint?[])

public static LinksRestriction Of(params uint?[] parts)

Parameters

parts uint?[]

Returns

LinksRestriction

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.