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