48 writes to ReturnValue
System.Text.Json (48)
System\Text\Json\Serialization\Converters\Collection\ArrayConverter.cs (2)
24state.Current.ReturnValue = new List<TElement>(); 31state.Current.ReturnValue = list.ToArray();
System\Text\Json\Serialization\Converters\Collection\IAsyncEnumerableOfTConverter.cs (1)
33state.Current.ReturnValue = new BufferedAsyncEnumerable();
System\Text\Json\Serialization\Converters\Collection\ICollectionOfTConverter.cs (2)
25state.Current.ReturnValue = collection; 35state.Current.ReturnValue = null; // clear out for more accurate JsonPath reporting.
System\Text\Json\Serialization\Converters\Collection\IDictionaryConverter.cs (2)
27state.Current.ReturnValue = collection; 37state.Current.ReturnValue = null; // clear out for more accurate JsonPath reporting.
System\Text\Json\Serialization\Converters\Collection\IDictionaryOfTKeyTValueConverter.cs (2)
27state.Current.ReturnValue = collection; 37state.Current.ReturnValue = null; // clear out for more accurate JsonPath reporting.
System\Text\Json\Serialization\Converters\Collection\IEnumerableConverter.cs (1)
33state.Current.ReturnValue = new List<object?>();
System\Text\Json\Serialization\Converters\Collection\IEnumerableOfTConverter.cs (1)
31state.Current.ReturnValue = new List<TElement>();
System\Text\Json\Serialization\Converters\Collection\IListConverter.cs (2)
24state.Current.ReturnValue = collection; 34state.Current.ReturnValue = null; // clear out for more accurate JsonPath reporting.
System\Text\Json\Serialization\Converters\Collection\IListOfTConverter.cs (2)
25state.Current.ReturnValue = collection; 35state.Current.ReturnValue = null; // clear out for more accurate JsonPath reporting.
System\Text\Json\Serialization\Converters\Collection\ImmutableDictionaryOfTKeyTValueConverter.cs (2)
25state.Current.ReturnValue = new Dictionary<TKey, TValue>(); 34state.Current.ReturnValue = creator((Dictionary<TKey, TValue>)state.Current.ReturnValue!);
System\Text\Json\Serialization\Converters\Collection\ImmutableEnumerableOfTConverter.cs (2)
24state.Current.ReturnValue = new List<TElement>(); 34state.Current.ReturnValue = creator((List<TElement>)state.Current.ReturnValue!);
System\Text\Json\Serialization\Converters\Collection\IReadOnlyDictionaryOfTKeyTValueConverter.cs (1)
29state.Current.ReturnValue = new Dictionary<TKey, TValue>();
System\Text\Json\Serialization\Converters\Collection\ISetOfTConverter.cs (2)
22state.Current.ReturnValue = collection; 32state.Current.ReturnValue = null; // clear out for more accurate JsonPath reporting.
System\Text\Json\Serialization\Converters\Collection\JsonCollectionConverter.cs (1)
40state.Current.ReturnValue = typeInfo.CreateObject();
System\Text\Json\Serialization\Converters\Collection\JsonDictionaryConverter.cs (1)
55state.Current.ReturnValue = typeInfo.CreateObject();
System\Text\Json\Serialization\Converters\Collection\ListOfTConverter.cs (1)
33state.Current.ReturnValue = state.Current.JsonTypeInfo.CreateObject();
System\Text\Json\Serialization\Converters\Collection\MemoryConverter.cs (2)
37state.Current.ReturnValue = new List<T>(); 44state.Current.ReturnValue = memory;
System\Text\Json\Serialization\Converters\Collection\QueueOfTConverter.cs (1)
31state.Current.ReturnValue = state.Current.JsonTypeInfo.CreateObject();
System\Text\Json\Serialization\Converters\Collection\ReadOnlyMemoryConverter.cs (2)
37state.Current.ReturnValue = new List<T>(); 44state.Current.ReturnValue = memory;
System\Text\Json\Serialization\Converters\Collection\RootLevelListConverter.cs (1)
65state.Current.ReturnValue = results = [];
System\Text\Json\Serialization\Converters\Collection\StackOfTConverter.cs (1)
32state.Current.ReturnValue = state.Current.JsonTypeInfo.CreateObject();
System\Text\Json\Serialization\Converters\Collection\StackOrQueueConverter.cs (1)
38state.Current.ReturnValue = constructorDelegate();
System\Text\Json\Serialization\Converters\FSharp\FSharpListConverter.cs (2)
31state.Current.ReturnValue = new List<TElement>(); 37state.Current.ReturnValue = _listConstructor((List<TElement>)state.Current.ReturnValue!);
System\Text\Json\Serialization\Converters\FSharp\FSharpMapConverter.cs (2)
34state.Current.ReturnValue = new List<Tuple<TKey, TValue>>(); 40state.Current.ReturnValue = _mapConstructor((List<Tuple<TKey, TValue>>)state.Current.ReturnValue!);
System\Text\Json\Serialization\Converters\FSharp\FSharpSetConverter.cs (2)
31state.Current.ReturnValue = new List<TElement>(); 37state.Current.ReturnValue = _setConstructor((List<TElement>)state.Current.ReturnValue!);
System\Text\Json\Serialization\Converters\Object\ObjectDefaultConverter.cs (6)
135state.Current.ReturnValue = obj; 153state.Current.ReturnValue = obj; 206state.Current.ReturnValue = obj; 217state.Current.ReturnValue = obj; 232state.Current.ReturnValue = obj; 242state.Current.ReturnValue = obj;
System\Text\Json\Serialization\JsonConverterOfT.ReadCore.cs (1)
50state.Current.ReturnValue = value;
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (1)
951state.Current.ReturnValue = value;
System\Text\Json\Serialization\Metadata\JsonPropertyInfoOfT.cs (1)
335state.Current.ReturnValue = obj;
63 references to ReturnValue
System.Text.Json (63)
System\Text\Json\Serialization\Converters\Collection\ArrayConverter.cs (2)
18((List<TElement>)state.Current.ReturnValue!).Add(value); 30List<TElement> list = (List<TElement>)state.Current.ReturnValue!;
System\Text\Json\Serialization\Converters\Collection\ConcurrentQueueOfTConverter.cs (1)
16((TCollection)state.Current.ReturnValue!).Enqueue(value);
System\Text\Json\Serialization\Converters\Collection\ConcurrentStackOfTConverter.cs (1)
16((TCollection)state.Current.ReturnValue!).Push(value);
System\Text\Json\Serialization\Converters\Collection\DictionaryOfTKeyTValueConverter.cs (1)
22((TCollection)state.Current.ReturnValue!)[key] = value;
System\Text\Json\Serialization\Converters\Collection\IAsyncEnumerableOfTConverter.cs (1)
27((BufferedAsyncEnumerable)state.Current.ReturnValue!)._buffer.Add(value);
System\Text\Json\Serialization\Converters\Collection\ICollectionOfTConverter.cs (2)
21TCollection collection = (TCollection)state.Current.ReturnValue!; 32TCollection returnValue = (TCollection)state.Current.ReturnValue!;
System\Text\Json\Serialization\Converters\Collection\IDictionaryConverter.cs (2)
23TDictionary collection = (TDictionary)state.Current.ReturnValue!; 34TDictionary returnValue = (TDictionary)state.Current.ReturnValue!;
System\Text\Json\Serialization\Converters\Collection\IDictionaryOfTKeyTValueConverter.cs (2)
23TDictionary collection = (TDictionary)state.Current.ReturnValue!; 34TDictionary returnValue = (TDictionary)state.Current.ReturnValue!;
System\Text\Json\Serialization\Converters\Collection\IEnumerableConverter.cs (1)
22((List<object?>)state.Current.ReturnValue!).Add(value);
System\Text\Json\Serialization\Converters\Collection\IEnumerableOfTConverter.cs (1)
20((List<TElement>)state.Current.ReturnValue!).Add(value);
System\Text\Json\Serialization\Converters\Collection\IListConverter.cs (2)
20TCollection collection = (TCollection)state.Current.ReturnValue!; 31TCollection returnValue = (TCollection)state.Current.ReturnValue!;
System\Text\Json\Serialization\Converters\Collection\IListOfTConverter.cs (2)
21TCollection collection = (TCollection)state.Current.ReturnValue!; 32TCollection returnValue = (TCollection)state.Current.ReturnValue!;
System\Text\Json\Serialization\Converters\Collection\ImmutableDictionaryOfTKeyTValueConverter.cs (2)
17((Dictionary<TKey, TValue>)state.Current.ReturnValue!)[key] = value; 34state.Current.ReturnValue = creator((Dictionary<TKey, TValue>)state.Current.ReturnValue!);
System\Text\Json\Serialization\Converters\Collection\ImmutableEnumerableOfTConverter.cs (2)
16((List<TElement>)state.Current.ReturnValue!).Add(value); 34state.Current.ReturnValue = creator((List<TElement>)state.Current.ReturnValue!);
System\Text\Json\Serialization\Converters\Collection\IReadOnlyDictionaryOfTKeyTValueConverter.cs (1)
18((Dictionary<TKey, TValue>)state.Current.ReturnValue!)[key] = value;
System\Text\Json\Serialization\Converters\Collection\ISetOfTConverter.cs (2)
18TCollection collection = (TCollection)state.Current.ReturnValue!; 29TCollection returnValue = (TCollection)state.Current.ReturnValue!;
System\Text\Json\Serialization\Converters\Collection\JsonCollectionConverter.cs (6)
41Debug.Assert(state.Current.ReturnValue is TCollection); 82jsonTypeInfo.OnDeserializing?.Invoke(state.Current.ReturnValue!); 186Debug.Assert(state.Current.ReturnValue is TCollection); 187state.ReferenceResolver.AddReference(state.ReferenceId, state.Current.ReturnValue); 191jsonTypeInfo.OnDeserializing?.Invoke(state.Current.ReturnValue!); 284object returnValue = state.Current.ReturnValue!;
System\Text\Json\Serialization\Converters\Collection\JsonDictionaryConverter.cs (6)
56Debug.Assert(state.Current.ReturnValue is TDictionary); 94jsonTypeInfo.OnDeserializing?.Invoke(state.Current.ReturnValue!); 209Debug.Assert(state.Current.ReturnValue is TDictionary); 210state.ReferenceResolver.AddReference(state.ReferenceId, state.Current.ReturnValue); 214jsonTypeInfo.OnDeserializing?.Invoke(state.Current.ReturnValue!); 308object result = state.Current.ReturnValue!;
System\Text\Json\Serialization\Converters\Collection\ListOfTConverter.cs (1)
18((TCollection)state.Current.ReturnValue!).Add(value);
System\Text\Json\Serialization\Converters\Collection\MemoryConverter.cs (2)
32((List<T>)state.Current.ReturnValue!).Add(value); 43Memory<T> memory = ((List<T>)state.Current.ReturnValue!).ToArray().AsMemory();
System\Text\Json\Serialization\Converters\Collection\QueueOfTConverter.cs (1)
16((TCollection)state.Current.ReturnValue!).Enqueue(value);
System\Text\Json\Serialization\Converters\Collection\ReadOnlyMemoryConverter.cs (2)
32((List<T>)state.Current.ReturnValue!).Add(value); 43ReadOnlyMemory<T> memory = ((List<T>)state.Current.ReturnValue!).ToArray().AsMemory();
System\Text\Json\Serialization\Converters\Collection\RootLevelListConverter.cs (1)
32var results = (List<T?>?)state.Current.ReturnValue;
System\Text\Json\Serialization\Converters\Collection\StackOfTConverter.cs (1)
17((TCollection)state.Current.ReturnValue!).Push(value);
System\Text\Json\Serialization\Converters\Collection\StackOrQueueConverter.cs (1)
20addMethodDelegate((TCollection)state.Current.ReturnValue!, value);
System\Text\Json\Serialization\Converters\FSharp\FSharpListConverter.cs (2)
25((List<TElement>)state.Current.ReturnValue!).Add(value); 37state.Current.ReturnValue = _listConstructor((List<TElement>)state.Current.ReturnValue!);
System\Text\Json\Serialization\Converters\FSharp\FSharpMapConverter.cs (2)
26((List<Tuple<TKey, TValue>>)state.Current.ReturnValue!).Add(new Tuple<TKey, TValue>(key, value)); 40state.Current.ReturnValue = _mapConstructor((List<Tuple<TKey, TValue>>)state.Current.ReturnValue!);
System\Text\Json\Serialization\Converters\FSharp\FSharpSetConverter.cs (2)
25((List<TElement>)state.Current.ReturnValue!).Add(value); 37state.Current.ReturnValue = _setConstructor((List<TElement>)state.Current.ReturnValue!);
System\Text\Json\Serialization\Converters\Object\ObjectDefaultConverter.cs (3)
37obj = state.Current.ReturnValue!; 113obj = state.Current.ReturnValue!; 141obj = state.Current.ReturnValue!;
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.cs (2)
50object populatedObject = state.Current.ReturnValue!; 167object populatedObject = state.Current.ReturnValue!;
System\Text\Json\Serialization\JsonConverterOfT.cs (1)
228object? parentObj = state.Current.ReturnValue;
System\Text\Json\Serialization\JsonConverterOfT.ReadCore.cs (1)
24if (state.SupportContinuation && state.Current.ReturnValue is object result)
System\Text\Json\Serialization\JsonSerializer.Read.Stream.cs (1)
573if (readStack.Current.ReturnValue is { } returnValue)
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (2)
948Debug.Assert(state.Parent.ReturnValue != null, "Parent object is null"); 950object? value = Get!(state.Parent.ReturnValue);
System\Text\Json\Serialization\ReadStack.cs (1)
288if (frame.ReturnValue is not IEnumerable enumerable)