Table of Contents

Class NameComparerGroup

Namespace
Rinku.Mapping
Assembly
Rinku.dll

Matches by evaluating children from right to left.

public record NameComparerGroup : IMutatableNameComparer, INameComparerThatCanAdd, INameComparerThatCanAddAComparer, INameComparerThatCanRemove, INameComparerThatCanRemoveAComparer, INameComparer, IEquatable<NameComparerGroup>
Inheritance
NameComparerGroup
Implements
Inherited Members
Extension Methods

Constructors

NameComparerGroup(INameComparer[])

Matches by evaluating children from right to left.

public NameComparerGroup(INameComparer[] Children)

Parameters

Children INameComparer[]

Properties

Children

public INameComparer[] Children { get; init; }

Property Value

INameComparer[]

Methods

Contains(string)

Checks whether this comparer or a child contains the supplied name.

public bool Contains(string name)

Parameters

name string

Returns

bool

GetDefaultName()

Returns the primary or first registered name used for identification.

public string GetDefaultName()

Returns

string

Match(ReadOnlySpan<char>, Span<INameComparer>)

Checks whether colName matches this comparer and its parent comparers.

public bool Match(ReadOnlySpan<char> colName, Span<INameComparer> nameComparers)

Parameters

colName ReadOnlySpan<char>

The remaining portion of the column name to match.

nameComparers Span<INameComparer>

The preceding chain of comparers to validate against.

Returns

bool

true if the full path matches, otherwise false.

TryAdd(INameComparer)

Attempts to merge another comparer. Returns the consolidated result if successful, otherwise null.

public INameComparer? TryAdd(INameComparer other)

Parameters

other INameComparer

Returns

INameComparer

TryAdd(string)

Attempts to add a standard alternative. Returns a new instance if successful, otherwise null.

public INameComparer? TryAdd(string name)

Parameters

name string

Returns

INameComparer

TryRemove(INameComparer)

Attempts to remove the target comparer. Returns the updated structure if found, otherwise null.

public INameComparer? TryRemove(INameComparer other)

Parameters

other INameComparer

Returns

INameComparer

TryRemove(string)

Attempts to remove a name. Returns the updated comparer if the name was removed, otherwise null.

public INameComparer? TryRemove(string name)

Parameters

name string

Returns

INameComparer