PairDeconstructor<TKey, TValue> Class

Base class for a pair deconstructor.
public abstract class PairDeconstructor<TKey, TValue> : IPairDeconstructor
Interfaces
  • IPairDeconstructor
Derived Types

Parameters

TKey
The key type.
TValue
The value type.

Methods

protected abstract (TKey Key, TValue Value) Deconstruct(string)
Deconstructs the provided string into a pair.

Extension Methods

T And<PairDeconstructor<TKey, TValue>>(Action<PairDeconstructor<TKey, TValue>>)
Performs the specified action on the given object and then returns the object. Useful for fluent testing patterns where additional assertions or operations are chained together in a readable manner.