public void Add(Type type, IDomainMapping mapping) { if (!mappings.ContainsKey(type)) { this.mappings.Add(type, mapping); } else { this.mappings[type] = mapping; } }
public void Add <TType>(IDomainMapping mapping) where TType : class { Add(typeof(TType), mapping); }