1 write to _constructor
Microsoft.Extensions.DependencyInjection.Abstractions (1)
ActivatorUtilities.cs (1)
812_constructor = constructor;
15 references to _constructor
Microsoft.Extensions.DependencyInjection.Abstractions (15)
ActivatorUtilities.cs (15)
816public ConstructorInfoEx ConstructorInfo => _constructor; 825for (int applyIndex = 0; applyIndex < _constructor.Parameters.Length; applyIndex++) 828_constructor.Parameters[applyIndex].ParameterType.IsAssignableFrom(givenType)) 843for (int i = 0; i < _constructor.Parameters.Length; i++) 846!_constructor.IsService(serviceProviderIsService, i)) 848if (ParameterDefaultValue.TryGetDefaultValue(_constructor.Parameters[i], out object? defaultValue)) 859return _constructor.Parameters.Length; 864for (int index = 0; index < _constructor.Parameters.Length; index++) 868object? value = _constructor.GetService(provider, index); 871if (!ParameterDefaultValue.TryGetDefaultValue(_constructor.Parameters[index], out object? defaultValue)) 873throw new InvalidOperationException(SR.Format(SR.UnableToResolveService, _constructor.Parameters[index].ParameterType, _constructor.Info.DeclaringType)); 888return _constructor.Invoker.Invoke(_parameterValues.Slice(0, _constructor.Parameters.Length)); 905for (int i = 0; i < _constructor.Parameters.Length; i++)