public void Add(Type contract, FastReflection.IDynamicConstructor ctor) { contract.ThrowIfNull("contract", "Parameter cannot be null."); ctor.ThrowIfNull("ctor", "Parameter cannot be null."); if (_ctorContainer.ContainsKey(contract)) { _ctorContainer[contract].Add(ctor); } else { SafeCollection<FastReflection.IDynamicConstructor> collection = new SafeCollection<FastReflection.IDynamicConstructor>(); collection.Add(ctor); _ctorContainer.TryAdd(contract, collection); } }