148 references to ReadStack
System.Text.Json (148)
System\Text\Json\Serialization\Converters\CastingConverter.cs (1)
50internal override bool OnTryRead(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options, scoped ref ReadStack state, out T? value)
System\Text\Json\Serialization\Converters\Collection\ArrayConverter.cs (3)
16protected override void Add(in TElement value, ref ReadStack state) 22protected override void CreateCollection(ref Utf8JsonReader reader, scoped ref ReadStack state, JsonSerializerOptions options) 28protected override void ConvertCollection(ref ReadStack state, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\Collection\ConcurrentQueueOfTConverter.cs (1)
14protected override void Add(in TElement value, ref ReadStack state)
System\Text\Json\Serialization\Converters\Collection\ConcurrentStackOfTConverter.cs (1)
14protected override void Add(in TElement value, ref ReadStack state)
System\Text\Json\Serialization\Converters\Collection\DictionaryOfTKeyTValueConverter.cs (1)
20protected override void Add(TKey key, in TValue value, JsonSerializerOptions options, ref ReadStack state)
System\Text\Json\Serialization\Converters\Collection\IAsyncEnumerableOfTConverter.cs (3)
15internal override bool OnTryRead(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options, scoped ref ReadStack state, out TAsyncEnumerable value) 25protected override void Add(in TElement value, ref ReadStack state) 31protected override void CreateCollection(ref Utf8JsonReader reader, scoped ref ReadStack state, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\Collection\ICollectionOfTConverter.cs (2)
19protected override void Add(in TElement value, ref ReadStack state) 29protected override void CreateCollection(ref Utf8JsonReader reader, scoped ref ReadStack state, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\Collection\IDictionaryConverter.cs (2)
21protected override void Add(string key, in object? value, JsonSerializerOptions options, ref ReadStack state) 31protected override void CreateCollection(ref Utf8JsonReader reader, scoped ref ReadStack state)
System\Text\Json\Serialization\Converters\Collection\IDictionaryOfTKeyTValueConverter.cs (2)
21protected override void Add(TKey key, in TValue value, JsonSerializerOptions options, ref ReadStack state) 31protected override void CreateCollection(ref Utf8JsonReader reader, scoped ref ReadStack state)
System\Text\Json\Serialization\Converters\Collection\IEnumerableConverter.cs (2)
20protected override void Add(in object? value, ref ReadStack state) 26protected override void CreateCollection(ref Utf8JsonReader reader, scoped ref ReadStack state, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\Collection\IEnumerableOfTConverter.cs (2)
18protected override void Add(in TElement value, ref ReadStack state) 24protected override void CreateCollection(ref Utf8JsonReader reader, scoped ref ReadStack state, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\Collection\IListConverter.cs (2)
18protected override void Add(in object? value, ref ReadStack state) 28protected override void CreateCollection(ref Utf8JsonReader reader, scoped ref ReadStack state, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\Collection\IListOfTConverter.cs (2)
19protected override void Add(in TElement value, ref ReadStack state) 29protected override void CreateCollection(ref Utf8JsonReader reader, scoped ref ReadStack state, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\Collection\ImmutableDictionaryOfTKeyTValueConverter.cs (3)
15protected sealed override void Add(TKey key, in TValue value, JsonSerializerOptions options, ref ReadStack state) 23protected sealed override void CreateCollection(ref Utf8JsonReader reader, scoped ref ReadStack state) 29protected sealed override void ConvertCollection(ref ReadStack state, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\Collection\ImmutableEnumerableOfTConverter.cs (3)
14protected sealed override void Add(in TElement value, ref ReadStack state) 22protected sealed override void CreateCollection(ref Utf8JsonReader reader, scoped ref ReadStack state, JsonSerializerOptions options) 28protected sealed override void ConvertCollection(ref ReadStack state, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\Collection\IReadOnlyDictionaryOfTKeyTValueConverter.cs (2)
16protected override void Add(TKey key, in TValue value, JsonSerializerOptions options, ref ReadStack state) 22protected override void CreateCollection(ref Utf8JsonReader reader, scoped ref ReadStack state)
System\Text\Json\Serialization\Converters\Collection\ISetOfTConverter.cs (2)
16protected override void Add(in TElement value, ref ReadStack state) 26protected override void CreateCollection(ref Utf8JsonReader reader, scoped ref ReadStack state, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\Collection\JsonCollectionConverter.cs (4)
21protected abstract void Add(in TElement value, ref ReadStack state); 26protected virtual void CreateCollection(ref Utf8JsonReader reader, scoped ref ReadStack state, JsonSerializerOptions options) 48protected virtual void ConvertCollection(ref ReadStack state, JsonSerializerOptions options) { } 65scoped ref ReadStack state,
System\Text\Json\Serialization\Converters\Collection\JsonDictionaryConverter.cs (5)
30protected abstract void Add(TKey key, in TValue value, JsonSerializerOptions options, ref ReadStack state); 36protected virtual void ConvertCollection(ref ReadStack state, JsonSerializerOptions options) { } 41protected virtual void CreateCollection(ref Utf8JsonReader reader, scoped ref ReadStack state) 76scoped ref ReadStack state, 314static TKey ReadDictionaryKey(JsonConverter<TKey> keyConverter, ref Utf8JsonReader reader, scoped ref ReadStack state, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\Collection\ListOfTConverter.cs (2)
16protected override void Add(in TElement value, ref ReadStack state) 21protected override void CreateCollection(ref Utf8JsonReader reader, scoped ref ReadStack state, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\Collection\MemoryConverter.cs (4)
18scoped ref ReadStack state, 30protected override void Add(in T value, ref ReadStack state) 35protected override void CreateCollection(ref Utf8JsonReader reader, scoped ref ReadStack state, JsonSerializerOptions options) 41protected override void ConvertCollection(ref ReadStack state, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\Collection\QueueOfTConverter.cs (2)
14protected override void Add(in TElement value, ref ReadStack state) 19protected override void CreateCollection(ref Utf8JsonReader reader, scoped ref ReadStack state, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\Collection\ReadOnlyMemoryConverter.cs (4)
18scoped ref ReadStack state, 30protected override void Add(in T value, ref ReadStack state) 35protected override void CreateCollection(ref Utf8JsonReader reader, scoped ref ReadStack state, JsonSerializerOptions options) 41protected override void ConvertCollection(ref ReadStack state, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\Collection\RootLevelListConverter.cs (1)
26internal override bool OnTryRead(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options, scoped ref ReadStack state, out List<T?>? value)
System\Text\Json\Serialization\Converters\Collection\StackOfTConverter.cs (2)
15protected override void Add(in TElement value, ref ReadStack state) 20protected override void CreateCollection(ref Utf8JsonReader reader, scoped ref ReadStack state, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\Collection\StackOrQueueConverter.cs (2)
16protected sealed override void Add(in object? value, ref ReadStack state) 23protected sealed override void CreateCollection(ref Utf8JsonReader reader, scoped ref ReadStack state, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\FSharp\FSharpListConverter.cs (3)
23protected override void Add(in TElement value, ref ReadStack state) 29protected override void CreateCollection(ref Utf8JsonReader reader, scoped ref ReadStack state, JsonSerializerOptions options) 35protected override void ConvertCollection(ref ReadStack state, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\FSharp\FSharpMapConverter.cs (3)
24protected override void Add(TKey key, in TValue value, JsonSerializerOptions options, ref ReadStack state) 32protected override void CreateCollection(ref Utf8JsonReader reader, scoped ref ReadStack state) 38protected override void ConvertCollection(ref ReadStack state, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\FSharp\FSharpOptionConverter.cs (1)
33internal override bool OnTryRead(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options, scoped ref ReadStack state, out TOption? value)
System\Text\Json\Serialization\Converters\FSharp\FSharpSetConverter.cs (3)
23protected override void Add(in TElement value, ref ReadStack state) 29protected override void CreateCollection(ref Utf8JsonReader reader, scoped ref ReadStack state, JsonSerializerOptions options) 35protected override void ConvertCollection(ref ReadStack state, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\FSharp\FSharpValueOptionConverter.cs (1)
33internal override bool OnTryRead(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options, scoped ref ReadStack state, out TValueOption value)
System\Text\Json\Serialization\Converters\JsonMetadataServicesConverter.cs (1)
48internal override bool OnTryRead(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options, scoped ref ReadStack state, out T? value)
System\Text\Json\Serialization\Converters\Node\JsonObjectConverter.cs (1)
23scoped ref ReadStack state)
System\Text\Json\Serialization\Converters\Object\ObjectConverter.cs (1)
111internal override bool OnTryRead(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options, scoped ref ReadStack state, out object? value)
System\Text\Json\Serialization\Converters\Object\ObjectDefaultConverter.cs (4)
20internal override bool OnTryRead(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options, scoped ref ReadStack state, [MaybeNullWhen(false)] out T value) 271internal static void PopulatePropertiesFastPath(object obj, JsonTypeInfo jsonTypeInfo, JsonSerializerOptions options, ref Utf8JsonReader reader, scoped ref ReadStack state) 460scoped ref ReadStack state, 496protected static bool ReadAheadPropertyValue(scoped ref ReadStack state, ref Utf8JsonReader reader, JsonPropertyInfo jsonPropertyInfo)
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.cs (9)
24internal sealed override bool OnTryRead(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options, scoped ref ReadStack state, [MaybeNullWhen(false)] out T value) 273protected abstract void InitializeConstructorArgumentCaches(ref ReadStack state, JsonSerializerOptions options); 275protected abstract bool ReadAndCacheConstructorArgument(scoped ref ReadStack state, ref Utf8JsonReader reader, JsonParameterInfo jsonParameterInfo); 283private void ReadConstructorArguments(scoped ref ReadStack state, ref Utf8JsonReader reader, JsonSerializerOptions options) 381private bool ReadConstructorArgumentsWithContinuation(scoped ref ReadStack state, ref Utf8JsonReader reader, JsonSerializerOptions options) 460scoped ref ReadStack state, 496scoped ref ReadStack state, 573private void BeginRead(scoped ref ReadStack state, JsonSerializerOptions options) 599scoped ref ReadStack state,
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.Large.cs (2)
17protected sealed override bool ReadAndCacheConstructorArgument(scoped ref ReadStack state, ref Utf8JsonReader reader, JsonParameterInfo jsonParameterInfo) 52protected sealed override void InitializeConstructorArgumentCaches(ref ReadStack state, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.Small.cs (3)
26scoped ref ReadStack state, 58scoped ref ReadStack state, 89protected override void InitializeConstructorArgumentCaches(ref ReadStack state, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\Value\NullableConverter.cs (1)
28internal override bool OnTryRead(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options, scoped ref ReadStack state, out T? value)
System\Text\Json\Serialization\JsonConverter.cs (4)
106scoped ref ReadStack state) 185/// Used in conjunction with <see cref="JsonCollectionConverter{TCollection, TElement}.ConvertCollection(ref ReadStack, JsonSerializerOptions)"/>. 203internal abstract bool OnTryReadAsObject(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options, scoped ref ReadStack state, out object? value); 204internal abstract bool TryReadAsObject(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options, scoped ref ReadStack state, out object? value);
System\Text\Json\Serialization\JsonConverter.MetadataHandling.cs (1)
14internal JsonConverter? ResolvePolymorphicConverter(JsonTypeInfo jsonTypeInfo, ref ReadStack state)
System\Text\Json\Serialization\JsonConverterFactory.cs (2)
64scoped ref ReadStack state, 76scoped ref ReadStack state,
System\Text\Json\Serialization\JsonConverterOfT.cs (4)
129internal virtual bool OnTryRead(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options, scoped ref ReadStack state, out T? value) 148internal bool TryRead(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options, scoped ref ReadStack state, out T? value, out bool isPopulatedValue) 282internal sealed override bool OnTryReadAsObject(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options, scoped ref ReadStack state, out object? value) 289internal sealed override bool TryReadAsObject(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options, scoped ref ReadStack state, out object? value)
System\Text\Json\Serialization\JsonConverterOfT.ReadCore.cs (1)
14ref ReadStack state)
System\Text\Json\Serialization\JsonResumableConverterOfT.cs (1)
26ReadStack state = default;
System\Text\Json\Serialization\JsonSerializer.Read.HandleMetadata.cs (6)
25internal static bool TryReadMetadata(JsonConverter converter, JsonTypeInfo jsonTypeInfo, ref Utf8JsonReader reader, scoped ref ReadStack state) 351scoped ref ReadStack state, 415scoped ref ReadStack state, 483internal static void ValidateMetadataForObjectConverter(ref ReadStack state) 492internal static void ValidateMetadataForArrayConverter(JsonConverter converter, ref Utf8JsonReader reader, scoped ref ReadStack state) 516internal static T ResolveReferenceId<T>(ref ReadStack state)
System\Text\Json\Serialization\JsonSerializer.Read.HandlePropertyName.cs (2)
22ref ReadStack state, 79scoped ref ReadStack state,
System\Text\Json\Serialization\JsonSerializer.Read.Span.cs (2)
157ReadStack state = default; 174ReadStack state = default;
System\Text\Json\Serialization\JsonSerializer.Read.Stream.cs (1)
557ReadStack readStack = default;
System\Text\Json\Serialization\JsonSerializer.Read.Utf8JsonReader.cs (3)
294ReadStack state = default; 319ReadStack state = default; 335private static Utf8JsonReader GetReaderScopedToNextValue(ref Utf8JsonReader reader, scoped ref ReadStack state)
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (5)
850scoped ref ReadStack state, 898internal abstract bool ReadJsonAndSetMember(object obj, scoped ref ReadStack state, ref Utf8JsonReader reader); 900internal abstract bool ReadJsonAsObject(scoped ref ReadStack state, ref Utf8JsonReader reader, out object? value); 902internal bool ReadJsonExtensionDataValue(scoped ref ReadStack state, ref Utf8JsonReader reader, out object? value) 942internal bool TryGetPrePopulatedValue(scoped ref ReadStack state)
System\Text\Json\Serialization\Metadata\JsonPropertyInfoOfT.cs (2)
275internal override bool ReadJsonAndSetMember(object obj, scoped ref ReadStack state, ref Utf8JsonReader reader) 365internal override bool ReadJsonAsObject(scoped ref ReadStack state, ref Utf8JsonReader reader, out object? value)
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (1)
1060internal abstract object? DeserializeAsObject(ref Utf8JsonReader reader, ref ReadStack state);
System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.ReadHelper.cs (5)
17internal T? Deserialize(ref Utf8JsonReader reader, ref ReadStack state) 30ReadStack readStack = default; 62ReadStack readStack = default; 97internal sealed override object? DeserializeAsObject(ref Utf8JsonReader reader, ref ReadStack state) 112ref ReadStack readStack,
System\Text\Json\ThrowHelper.Serialization.cs (15)
401scoped ref ReadStack state) 430public static void ReThrowWithPath(scoped ref ReadStack state, JsonReaderException ex) 456public static void ReThrowWithPath(scoped ref ReadStack state, in Utf8JsonReader reader, Exception ex) 463public static void AddJsonExceptionInformation(scoped ref ReadStack state, in Utf8JsonReader reader, JsonException ex) 567public static void ThrowNotSupportedException(scoped ref ReadStack state, in Utf8JsonReader reader, Exception innerException) 621public static void ThrowNotSupportedException_DeserializeNoConstructor(JsonTypeInfo typeInfo, ref Utf8JsonReader reader, scoped ref ReadStack state) 650public static void ThrowNotSupportedException_CannotPopulateCollection(Type type, ref Utf8JsonReader reader, scoped ref ReadStack state) 680public static void ThrowJsonException_MetadataReferenceObjectCannotContainOtherProperties(ReadOnlySpan<byte> propertyName, scoped ref ReadStack state) 687public static void ThrowJsonException_MetadataUnexpectedProperty(ReadOnlySpan<byte> propertyName, scoped ref ReadStack state) 706public static void ThrowJsonException_MetadataIdCannotBeCombinedWithRef(ReadOnlySpan<byte> propertyName, scoped ref ReadStack state) 713public static void ThrowJsonException_MetadataStandaloneValuesProperty(scoped ref ReadStack state, ReadOnlySpan<byte> propertyName) 720public static void ThrowJsonException_MetadataInvalidPropertyWithLeadingDollarSign(ReadOnlySpan<byte> propertyName, scoped ref ReadStack state, in Utf8JsonReader reader) 754public static void ThrowJsonException_MetadataInvalidPropertyInArrayMetadata(scoped ref ReadStack state, Type propertyType, in Utf8JsonReader reader) 765public static void ThrowJsonException_MetadataPreservedArrayValuesNotFound(scoped ref ReadStack state, Type propertyType) 798scoped ref ReadStack state)