static AbstractionMap() { Default = new AbstractionMap(); Default.MapGeneric(typeof(IEnumerable <>), typeof(List <>)); Default.MapGeneric(typeof(ICollection <>), typeof(List <>)); Default.MapGeneric(typeof(IList <>), typeof(List <>)); Default.MapGeneric(typeof(IDictionary <,>), typeof(Dictionary <,>)); }
/// <summary> /// Creates a new <see cref="AbstractionMap"/> instance using another as a basis. /// </summary> public AbstractionMap(AbstractionMap other) { _registry = other._registry.ToDictionary(kvp => kvp.Key, kvp => kvp.Value); }