1 write to ConstructorInfo
System.Text.Json (1)
System\Text\Json\Serialization\Converters\Object\ObjectConverterFactory.cs (1)
102
converter.
ConstructorInfo
= constructor!;
10 references to ConstructorInfo
System.Text.Json (10)
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.Large.Reflection.cs (1)
27
jsonTypeInfo.CreateObjectWithArgs = DefaultJsonTypeInfoResolver.MemberAccessor.CreateParameterizedConstructor<T>(
ConstructorInfo
!);
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.Small.cs (1)
126
jsonTypeInfo.CreateObjectWithArgs = DefaultJsonTypeInfoResolver.MemberAccessor.CreateParameterizedConstructor<T, TArg0, TArg1, TArg2, TArg3>(
ConstructorInfo
!);
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Helpers.cs (8)
85
typeInfo.ConstructorAttributeProvider = typeInfo.Converter.
ConstructorInfo
;
103
typeInfo.Converter.
ConstructorInfo
?.HasSetsRequiredMembersAttribute() ?? false;
288
Debug.Assert(typeInfo.Converter.
ConstructorInfo
!= null);
289
ParameterInfo[] parameters = typeInfo.Converter.
ConstructorInfo
.GetParameters();
300
Debug.Assert(typeInfo.Converter.
ConstructorInfo
.DeclaringType != null);
301
ThrowHelper.ThrowNotSupportedException_ConstructorContainsNullParameterNames(typeInfo.Converter.
ConstructorInfo
.DeclaringType);
455
if (converter.
ConstructorInfo
!= null && !converter.ConstructorIsParameterized)
459
defaultCtor = converter.
ConstructorInfo
;