public object CreateType(RegistrationDetails details) { if (!_createdTypes.ContainsKey(details.RegisteredType)) { _createdTypes.TryAdd(details.RegisteredType, _constructor.Build(details.Instructions)); } return(_createdTypes[details.RegisteredType]); }
public object CreateType(RegistrationDetails details) { var obj = _constructor.Build(details.Instructions); return(obj); }