Class AssemblyScopePattern.MatchNode
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
PatternPattern<IResolutionScope>ConcreteValueIResolutionScopeNameIMatchNode<string>VersionIMatchNode<Version>CultureIMatchNode<string>
Properties
ConcreteValue
Gets the value that matched the pattern.
public IResolutionScope ConcreteValue { get; init; }
Property Value
Culture
public IMatchNode<string?> Culture { get; init; }
Property Value
Name
public IMatchNode<string?> Name { get; init; }
Property Value
Pattern
Gets the pattern that was matched.
public Pattern<IResolutionScope> Pattern { get; init; }
Property Value
Version
public IMatchNode<Version> Version { get; init; }
Property Value
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
PatternPattern<IResolutionScope>ConcreteValueIResolutionScopeNameIMatchNode<string>VersionIMatchNode<Version>CultureIMatchNode<string>
Equals(MatchNode?)
public bool Equals(AssemblyScopePattern.MatchNode? other)
Parameters
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetChildren()
Enumerates all child nodes of this match node.
public IEnumerable<(string Name, IMatchNode Match)> GetChildren()
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(MatchNode?, MatchNode?)
public static bool operator ==(AssemblyScopePattern.MatchNode? left, AssemblyScopePattern.MatchNode? right)
Parameters
Returns
operator !=(MatchNode?, MatchNode?)
public static bool operator !=(AssemblyScopePattern.MatchNode? left, AssemblyScopePattern.MatchNode? right)