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