1 write to CtorArgumentState
System.Text.Json (1)
System\Text\Json\Serialization\ReadStack.cs (1)
394Current.CtorArgumentState ??= new();
19 references to CtorArgumentState
System.Text.Json (19)
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.cs (7)
37ArgumentState argumentState = state.Current.CtorArgumentState!; 345ArgumentState argumentState = state.Current.CtorArgumentState!; 435jsonParameterInfo = state.Current.CtorArgumentState!.JsonParameterInfo; 542ArgumentState argumentState = state.Current.CtorArgumentState!; 589Debug.Assert(state.Current.CtorArgumentState != null); 605Debug.Assert(state.Current.CtorArgumentState != null); 622state.Current.CtorArgumentState!.JsonParameterInfo = jsonParameterInfo;
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.Large.cs (5)
30((object[])state.Current.CtorArgumentState!.Arguments)[jsonParameterInfo.Position] = arg!; 38Debug.Assert(frame.CtorArgumentState != null); 41object[] arguments = (object[])frame.CtorArgumentState.Arguments; 42frame.CtorArgumentState.Arguments = null!; 62state.Current.CtorArgumentState!.Arguments = arguments;
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.Small.cs (4)
21var arguments = (Arguments<TArg0, TArg1, TArg2, TArg3>)frame.CtorArgumentState!.Arguments; 30Debug.Assert(state.Current.CtorArgumentState!.Arguments != null); 31var arguments = (Arguments<TArg0, TArg1, TArg2, TArg3>)state.Current.CtorArgumentState.Arguments; 119state.Current.CtorArgumentState!.Arguments = arguments;
System\Text\Json\Serialization\ReadStack.cs (2)
125JsonTypeInfo jsonTypeInfo = Current.JsonPropertyInfo?.JsonTypeInfo ?? Current.CtorArgumentState!.JsonParameterInfo!.JsonTypeInfo; 358frame.CtorArgumentState?.JsonParameterInfo?.JsonNameAsUtf8Bytes;
System\Text\Json\Serialization\ReadStackFrame.cs (1)
91CtorArgumentState!.JsonParameterInfo = null;