53 references to WriteStack
System.Text.Json (53)
System\Text\Json\Serialization\Converters\CastingConverter.cs (1)
54internal override bool OnTryWrite(Utf8JsonWriter writer, T value, JsonSerializerOptions options, ref WriteStack state)
System\Text\Json\Serialization\Converters\Collection\ArrayConverter.cs (1)
33protected 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)
51protected static JsonConverter<TElement> GetElementConverter(ref WriteStack state) 285ref WriteStack state) 330protected 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); 332ref 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)
46protected override bool OnWriteResume(Utf8JsonWriter writer, Memory<T> value, JsonSerializerOptions options, ref WriteStack state)
System\Text\Json\Serialization\Converters\Collection\ReadOnlyMemoryConverter.cs (2)
46protected override bool OnWriteResume(Utf8JsonWriter writer, ReadOnlyMemory<T> value, JsonSerializerOptions options, ref WriteStack state) 51internal 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)
52internal override bool OnTryWrite(Utf8JsonWriter writer, TOption value, JsonSerializerOptions options, ref WriteStack state)
System\Text\Json\Serialization\Converters\FSharp\FSharpValueOptionConverter.cs (1)
52internal override bool OnTryWrite(Utf8JsonWriter writer, TValueOption value, JsonSerializerOptions options, ref WriteStack state)
System\Text\Json\Serialization\Converters\JsonMetadataServicesConverter.cs (1)
48internal override bool OnTryWrite(Utf8JsonWriter writer, T value, JsonSerializerOptions options, ref WriteStack state)
System\Text\Json\Serialization\Converters\Object\ObjectDefaultConverter.cs (1)
318ref WriteStack state)
System\Text\Json\Serialization\Converters\Value\NullableConverter.cs (1)
49internal override bool OnTryWrite(Utf8JsonWriter writer, T? value, JsonSerializerOptions options, ref WriteStack state)
System\Text\Json\Serialization\JsonConverter.cs (3)
174internal static bool ShouldFlush(Utf8JsonWriter writer, ref WriteStack state) 188internal abstract bool OnTryWriteAsObject(Utf8JsonWriter writer, object? value, JsonSerializerOptions options, ref WriteStack state); 189internal 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)
120ref WriteStack state) 131ref WriteStack state)
System\Text\Json\Serialization\JsonConverterOfT.cs (5)
88internal sealed override bool OnTryWriteAsObject(Utf8JsonWriter writer, object? value, JsonSerializerOptions options, ref WriteStack state) 114internal sealed override bool TryWriteAsObject(Utf8JsonWriter writer, object? value, JsonSerializerOptions options, ref WriteStack state) 126ref WriteStack state) 331internal bool TryWrite(Utf8JsonWriter writer, in T? value, JsonSerializerOptions options, ref WriteStack state) 449internal 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)
641internal abstract bool GetMemberAndWriteJson(object obj, ref WriteStack state, Utf8JsonWriter writer); 642internal abstract bool GetMemberAndWriteJsonExtensionData(object obj, ref WriteStack state, Utf8JsonWriter writer);
System\Text\Json\Serialization\Metadata\JsonPropertyInfoOfT.cs (2)
158internal override bool GetMemberAndWriteJson(object obj, ref WriteStack state, Utf8JsonWriter writer) 233internal override bool GetMemberAndWriteJsonExtensionData(object obj, ref WriteStack state, Utf8JsonWriter writer)
System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.WriteHelpers.cs (3)
53WriteStack state = default; 135WriteStack state = default; 264WriteStack 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)
471public static void ReThrowWithPath(ref WriteStack state, Exception ex) 478public static void AddJsonExceptionInformation(ref WriteStack state, JsonException ex) 566public static void ThrowNotSupportedException(ref WriteStack state, NotSupportedException ex)