1 write to _constructor
Microsoft.Extensions.DependencyInjection.Abstractions (1)
ActivatorUtilities.cs (1)
803_constructor = constructor;
15 references to _constructor
Microsoft.Extensions.DependencyInjection.Abstractions (15)
ActivatorUtilities.cs (15)
807public ConstructorInfoEx ConstructorInfo => _constructor; 816for (int applyIndex = 0; applyIndex < _constructor.Parameters.Length; applyIndex++) 819_constructor.Parameters[applyIndex].ParameterType.IsAssignableFrom(givenType)) 834for (int i = 0; i < _constructor.Parameters.Length; i++) 837!_constructor.IsService(serviceProviderIsService, i)) 839if (ParameterDefaultValue.TryGetDefaultValue(_constructor.Parameters[i], out object? defaultValue)) 850return _constructor.Parameters.Length; 855for (int index = 0; index < _constructor.Parameters.Length; index++) 859object? value = _constructor.GetService(provider, index); 862if (!ParameterDefaultValue.TryGetDefaultValue(_constructor.Parameters[index], out object? defaultValue)) 864throw new InvalidOperationException(SR.Format(SR.UnableToResolveService, _constructor.Parameters[index].ParameterType, _constructor.Info.DeclaringType)); 879return _constructor.Invoker.Invoke(_parameterValues.Slice(0, _constructor.Parameters.Length)); 896for (int i = 0; i < _constructor.Parameters.Length; i++)