Type2Dictionary<T>

public sealed class Type2Dictionary<T>
A dictionary for values associated with type pairs, with build-in derived type fallback.
T

Properties

All

#
public IEnumerable<(Type a, Type b)> All { get; }

Count

#
public int Count { get; }

Derived

#
public IEnumerable<(Type a, Type b)> Derived { get; }

Pure

#
public IEnumerable<(Type a, Type b)> Pure { get; }

Methods

Add

#
public bool Add(Type typeA, Type typeB, T value)
Add a new element to this dictionary.
typeA (Type)
typeB (Type)
value (T)

TryGet

#
public bool TryGet(Type typeA, Type typeB, out T value)
Try and get the value associated with the given type.
typeA (Type)
typeB (Type)
value (out T)