20 references to TryWrite
System.Text.Json (20)
System\Text\Json\Serialization\Converters\Collection\ArrayConverter.cs (1)
52if (!elementConverter.TryWrite(writer, element, options, ref state))
System\Text\Json\Serialization\Converters\Collection\DictionaryDefaultConverter.cs (1)
62if (!_valueConverter.TryWrite(writer, element, options, ref state))
System\Text\Json\Serialization\Converters\Collection\DictionaryOfTKeyTValueConverter.cs (1)
79if (!_valueConverter.TryWrite(writer, element, options, ref state))
System\Text\Json\Serialization\Converters\Collection\IAsyncEnumerableOfTConverter.cs (1)
116if (!converter.TryWrite(writer, element, options, ref state))
System\Text\Json\Serialization\Converters\Collection\IDictionaryConverter.cs (1)
88if (!_valueConverter.TryWrite(writer, element, options, ref state))
System\Text\Json\Serialization\Converters\Collection\IEnumerableConverter.cs (1)
69if (!converter.TryWrite(writer, element, options, ref state))
System\Text\Json\Serialization\Converters\Collection\IEnumerableDefaultConverter.cs (1)
47if (!converter.TryWrite(writer, element, options, ref state))
System\Text\Json\Serialization\Converters\Collection\IListConverter.cs (1)
60if (!elementConverter.TryWrite(writer, element, options, ref state))
System\Text\Json\Serialization\Converters\Collection\ListOfTConverter.cs (1)
57if (!elementConverter.TryWrite(writer, element, options, ref state))
System\Text\Json\Serialization\Converters\Collection\ReadOnlyMemoryConverter.cs (1)
70if (!elementConverter.TryWrite(writer, value[index], options, ref state))
System\Text\Json\Serialization\Converters\Collection\StackOrQueueConverter.cs (1)
69if (!converter.TryWrite(writer, element, options, ref state))
System\Text\Json\Serialization\Converters\FSharp\FSharpOptionConverter.cs (1)
64return _elementConverter.TryWrite(writer, element, options, ref state);
System\Text\Json\Serialization\Converters\FSharp\FSharpValueOptionConverter.cs (1)
65return _elementConverter.TryWrite(writer, element, options, ref state);
System\Text\Json\Serialization\Converters\Value\NullableConverter.cs (1)
59return _elementConverter.TryWrite(writer, value.Value, options, ref state);
System\Text\Json\Serialization\JsonConverterOfT.cs (3)
113return TryWrite(writer, valueOfT, options, ref state); 451return TryWrite(writer, value, options, ref state); 462return TryWrite(writer, value, options, ref state);
System\Text\Json\Serialization\JsonConverterOfT.WriteCore.cs (1)
16return TryWrite(writer, value, options, ref state);
System\Text\Json\Serialization\JsonResumableConverterOfT.cs (1)
48TryWrite(writer, value, options, ref state);
System\Text\Json\Serialization\Metadata\JsonPropertyInfoOfT.cs (1)
247return EffectiveConverter.TryWrite(writer, value, Options, ref state);