1 write to _constructor
Microsoft.Extensions.DependencyInjection.Abstractions (1)
ActivatorUtilities.cs (1)
808_constructor = constructor;
15 references to _constructor
Microsoft.Extensions.DependencyInjection.Abstractions (15)
ActivatorUtilities.cs (15)
812public ConstructorInfoEx ConstructorInfo => _constructor; 821for (int applyIndex = 0; applyIndex < _constructor.Parameters.Length; applyIndex++) 824_constructor.Parameters[applyIndex].ParameterType.IsAssignableFrom(givenType)) 839for (int i = 0; i < _constructor.Parameters.Length; i++) 842!_constructor.IsService(serviceProviderIsService, i)) 844if (ParameterDefaultValue.TryGetDefaultValue(_constructor.Parameters[i], out object? defaultValue)) 855return _constructor.Parameters.Length; 860for (int index = 0; index < _constructor.Parameters.Length; index++) 864object? value = _constructor.GetService(provider, index); 867if (!ParameterDefaultValue.TryGetDefaultValue(_constructor.Parameters[index], out object? defaultValue)) 869throw new InvalidOperationException(SR.Format(SR.UnableToResolveService, _constructor.Parameters[index].ParameterType, _constructor.Info.DeclaringType)); 884return _constructor.Invoker.Invoke(_parameterValues.Slice(0, _constructor.Parameters.Length)); 901for (int i = 0; i < _constructor.Parameters.Length; i++)