public ImmutableArray <IMember>?Get(TypeInfo parameter) { var constructor = _constructors.Get(parameter); var result = constructor != null?_members.Get(constructor) : null; return(result); }
public object Get(TypeInfo parameter) { var defaults = _constructors.Get(parameter) != null ? _defaults : _previous; var result = defaults.Get(parameter); return(result); }
public IActivator Get(Type parameter) { var typeInfo = parameter.GetTypeInfo(); var constructor = _constructors.Get(typeInfo); var members = constructor != null?_members.Get(constructor) : null; var result = members != null ? Activator(constructor, members.GetValueOrDefault()) : _activators.Get(typeInfo); return(result); }