53 references to WriteStack
System.Text.Json (53)
System\Text\Json\Serialization\Converters\CastingConverter.cs (1)
57internal override bool OnTryWrite(Utf8JsonWriter writer, T value, JsonSerializerOptions options, ref WriteStack state)
System\Text\Json\Serialization\Converters\Collection\ArrayConverter.cs (1)
34protected override bool OnWriteResume(Utf8JsonWriter writer, TElement[] array, JsonSerializerOptions options, ref WriteStack state)
System\Text\Json\Serialization\Converters\Collection\DictionaryDefaultConverter.cs (1)
25ref WriteStack state)
System\Text\Json\Serialization\Converters\Collection\DictionaryOfTKeyTValueConverter.cs (1)
29ref WriteStack state)
System\Text\Json\Serialization\Converters\Collection\IAsyncEnumerableOfTConverter.cs (2)
36internal override bool OnTryWrite(Utf8JsonWriter writer, TAsyncEnumerable value, JsonSerializerOptions options, ref WriteStack state) 47protected override bool OnWriteResume(Utf8JsonWriter writer, TAsyncEnumerable value, JsonSerializerOptions options, ref WriteStack state)
System\Text\Json\Serialization\Converters\Collection\IDictionaryConverter.cs (1)
42protected internal override bool OnWriteResume(Utf8JsonWriter writer, TDictionary value, JsonSerializerOptions options, ref WriteStack state)
System\Text\Json\Serialization\Converters\Collection\IEnumerableConverter.cs (1)
43ref WriteStack state)
System\Text\Json\Serialization\Converters\Collection\IEnumerableDefaultConverter.cs (1)
17protected override bool OnWriteResume(Utf8JsonWriter writer, TCollection value, JsonSerializerOptions options, ref WriteStack state)
System\Text\Json\Serialization\Converters\Collection\IListConverter.cs (1)
39protected override bool OnWriteResume(Utf8JsonWriter writer, TCollection value, JsonSerializerOptions options, ref WriteStack state)
System\Text\Json\Serialization\Converters\Collection\JsonCollectionConverter.cs (3)
55protected static JsonConverter<TElement> GetElementConverter(ref WriteStack state) 295ref WriteStack state) 346protected abstract bool OnWriteResume(Utf8JsonWriter writer, TCollection value, JsonSerializerOptions options, ref WriteStack state);
System\Text\Json\Serialization\Converters\Collection\JsonDictionaryConverter.cs (2)
18protected internal abstract bool OnWriteResume(Utf8JsonWriter writer, TDictionary dictionary, JsonSerializerOptions options, ref WriteStack state); 338ref WriteStack state)
System\Text\Json\Serialization\Converters\Collection\ListOfTConverter.cs (1)
36protected override bool OnWriteResume(Utf8JsonWriter writer, TCollection value, JsonSerializerOptions options, ref WriteStack state)
System\Text\Json\Serialization\Converters\Collection\MemoryConverter.cs (1)
47protected override bool OnWriteResume(Utf8JsonWriter writer, Memory<T> value, JsonSerializerOptions options, ref WriteStack state)
System\Text\Json\Serialization\Converters\Collection\ReadOnlyMemoryConverter.cs (2)
47protected override bool OnWriteResume(Utf8JsonWriter writer, ReadOnlyMemory<T> value, JsonSerializerOptions options, ref WriteStack state) 52internal static bool OnWriteResume(Utf8JsonWriter writer, ReadOnlySpan<T> value, JsonSerializerOptions options, ref WriteStack state)
System\Text\Json\Serialization\Converters\Collection\StackOrQueueConverter.cs (1)
43protected sealed override bool OnWriteResume(Utf8JsonWriter writer, TCollection value, JsonSerializerOptions options, ref WriteStack state)
System\Text\Json\Serialization\Converters\FSharp\FSharpOptionConverter.cs (1)
53internal override bool OnTryWrite(Utf8JsonWriter writer, TOption value, JsonSerializerOptions options, ref WriteStack state)
System\Text\Json\Serialization\Converters\FSharp\FSharpValueOptionConverter.cs (1)
53internal override bool OnTryWrite(Utf8JsonWriter writer, TValueOption value, JsonSerializerOptions options, ref WriteStack state)
System\Text\Json\Serialization\Converters\JsonMetadataServicesConverter.cs (1)
51internal override bool OnTryWrite(Utf8JsonWriter writer, T value, JsonSerializerOptions options, ref WriteStack state)
System\Text\Json\Serialization\Converters\Object\ObjectDefaultConverter.cs (1)
320ref WriteStack state)
System\Text\Json\Serialization\Converters\Value\NullableConverter.cs (1)
50internal override bool OnTryWrite(Utf8JsonWriter writer, T? value, JsonSerializerOptions options, ref WriteStack state)
System\Text\Json\Serialization\JsonConverter.cs (3)
189internal static bool ShouldFlush(ref WriteStack state, Utf8JsonWriter writer) 210internal abstract bool OnTryWriteAsObject(Utf8JsonWriter writer, object? value, JsonSerializerOptions options, ref WriteStack state); 211internal abstract bool TryWriteAsObject(Utf8JsonWriter writer, object? value, JsonSerializerOptions options, ref WriteStack state);
System\Text\Json\Serialization\JsonConverter.MetadataHandling.cs (2)
69internal JsonConverter? ResolvePolymorphicConverter(object value, JsonTypeInfo jsonTypeInfo, JsonSerializerOptions options, ref WriteStack state) 138internal bool TryHandleSerializedObjectReference(Utf8JsonWriter writer, object value, JsonSerializerOptions options, JsonConverter? polymorphicConverter, ref WriteStack state)
System\Text\Json\Serialization\JsonConverterFactory.cs (2)
116ref WriteStack state) 127ref WriteStack state)
System\Text\Json\Serialization\JsonConverterOfT.cs (5)
84internal sealed override bool OnTryWriteAsObject(Utf8JsonWriter writer, object? value, JsonSerializerOptions options, ref WriteStack state) 110internal sealed override bool TryWriteAsObject(Utf8JsonWriter writer, object? value, JsonSerializerOptions options, ref WriteStack state) 122ref WriteStack state) 327internal bool TryWrite(Utf8JsonWriter writer, in T? value, JsonSerializerOptions options, ref WriteStack state) 445internal bool TryWriteDataExtensionProperty(Utf8JsonWriter writer, T value, JsonSerializerOptions options, ref WriteStack state)
System\Text\Json\Serialization\JsonConverterOfT.WriteCore.cs (1)
12ref WriteStack state)
System\Text\Json\Serialization\JsonResumableConverterOfT.cs (1)
42WriteStack state = default;
System\Text\Json\Serialization\JsonSerializer.Write.HandleMetadata.cs (3)
19ref WriteStack state, 64ref WriteStack state, 77internal static bool TryGetReferenceForValue(object currentValue, ref WriteStack state, Utf8JsonWriter writer)
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (2)
741internal abstract bool GetMemberAndWriteJson(object obj, ref WriteStack state, Utf8JsonWriter writer); 742internal abstract bool GetMemberAndWriteJsonExtensionData(object obj, ref WriteStack state, Utf8JsonWriter writer);
System\Text\Json\Serialization\Metadata\JsonPropertyInfoOfT.cs (2)
171internal override bool GetMemberAndWriteJson(object obj, ref WriteStack state, Utf8JsonWriter writer) 251internal override bool GetMemberAndWriteJsonExtensionData(object obj, ref WriteStack state, Utf8JsonWriter writer)
System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.WriteHelpers.cs (3)
53WriteStack state = default; 148WriteStack state = default; 295WriteStack state = default;
System\Text\Json\Serialization\WriteStackFrame.cs (1)
28/// stored in the <see cref="WriteStack.PendingTask"/> property.
System\Text\Json\ThrowHelper.Serialization.cs (3)
494public static void ReThrowWithPath(ref WriteStack state, Exception ex) 501public static void AddJsonExceptionInformation(ref WriteStack state, JsonException ex) 595public static void ThrowNotSupportedException(ref WriteStack state, Exception innerException)