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)
816
public ConstructorInfoEx ConstructorInfo =>
_constructor
;
825
for (int applyIndex = 0; applyIndex <
_constructor
.Parameters.Length; applyIndex++)
828
_constructor
.Parameters[applyIndex].ParameterType.IsAssignableFrom(givenType))
843
for (int i = 0; i <
_constructor
.Parameters.Length; i++)
846
!
_constructor
.IsService(serviceProviderIsService, i))
848
if (ParameterDefaultValue.TryGetDefaultValue(
_constructor
.Parameters[i], out object? defaultValue))
859
return
_constructor
.Parameters.Length;
864
for (int index = 0; index <
_constructor
.Parameters.Length; index++)
868
object? value =
_constructor
.GetService(provider, index);
871
if (!ParameterDefaultValue.TryGetDefaultValue(
_constructor
.Parameters[index], out object? defaultValue))
873
throw new InvalidOperationException(SR.Format(SR.UnableToResolveService,
_constructor
.Parameters[index].ParameterType,
_constructor
.Info.DeclaringType));
888
return
_constructor
.Invoker.Invoke(_parameterValues.Slice(0,
_constructor
.Parameters.Length));
905
for (int i = 0; i <
_constructor
.Parameters.Length; i++)