TypeDictionary<T>

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

Properties

All

#
public IEnumerable<Type> All { get; }

Count

#
public int Count { get; }

Derived

#
public IEnumerable<Type> Derived { get; }

Pure

#
public IEnumerable<Type> Pure { get; }

Methods

Add

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

TryGet

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