Table of Contents

Class AssemblyScopePattern.MatchNode

Namespace
CilFi.Patterns
Assembly
CilFi.Core.dll

Represents a match node produced by a AssemblyScopePattern.

public sealed record AssemblyScopePattern.MatchNode : IMatchNode<IResolutionScope>, IMatchNode, IEquatable<AssemblyScopePattern.MatchNode>
Inheritance
AssemblyScopePattern.MatchNode
Implements
Inherited Members

Constructors

MatchNode(Pattern<IResolutionScope>, IResolutionScope, IMatchNode<string?>, IMatchNode<Version>, IMatchNode<string?>)

Represents a match node produced by a AssemblyScopePattern.

public MatchNode(Pattern<IResolutionScope> Pattern, IResolutionScope ConcreteValue, IMatchNode<string?> Name, IMatchNode<Version> Version, IMatchNode<string?> Culture)

Parameters

Pattern Pattern<IResolutionScope>
ConcreteValue IResolutionScope
Name IMatchNode<string>
Version IMatchNode<Version>
Culture IMatchNode<string>

Properties

ConcreteValue

Gets the value that matched the pattern.

public IResolutionScope ConcreteValue { get; init; }

Property Value

IResolutionScope

Culture

public IMatchNode<string?> Culture { get; init; }

Property Value

IMatchNode<string>

Name

public IMatchNode<string?> Name { get; init; }

Property Value

IMatchNode<string>

Pattern

Gets the pattern that was matched.

public Pattern<IResolutionScope> Pattern { get; init; }

Property Value

Pattern<IResolutionScope>

Version

public IMatchNode<Version> Version { get; init; }

Property Value

IMatchNode<Version>

Methods

Deconstruct(out Pattern<IResolutionScope>, out IResolutionScope, out IMatchNode<string?>, out IMatchNode<Version>, out IMatchNode<string?>)

public void Deconstruct(out Pattern<IResolutionScope> Pattern, out IResolutionScope ConcreteValue, out IMatchNode<string?> Name, out IMatchNode<Version> Version, out IMatchNode<string?> Culture)

Parameters

Pattern Pattern<IResolutionScope>
ConcreteValue IResolutionScope
Name IMatchNode<string>
Version IMatchNode<Version>
Culture IMatchNode<string>

Equals(MatchNode?)

public bool Equals(AssemblyScopePattern.MatchNode? other)

Parameters

other AssemblyScopePattern.MatchNode

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetChildren()

Enumerates all child nodes of this match node.

public IEnumerable<(string Name, IMatchNode Match)> GetChildren()

Returns

IEnumerable<(string Name, IMatchNode Match)>

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(MatchNode?, MatchNode?)

public static bool operator ==(AssemblyScopePattern.MatchNode? left, AssemblyScopePattern.MatchNode? right)

Parameters

left AssemblyScopePattern.MatchNode
right AssemblyScopePattern.MatchNode

Returns

bool

operator !=(MatchNode?, MatchNode?)

public static bool operator !=(AssemblyScopePattern.MatchNode? left, AssemblyScopePattern.MatchNode? right)

Parameters

left AssemblyScopePattern.MatchNode
right AssemblyScopePattern.MatchNode

Returns

bool