11 references to UnboxOnWrite
System.Text.Json (11)
System\Text\Json\Serialization\JsonConverterOfT.cs (6)
79T valueOfT = JsonSerializer.UnboxOnWrite<T>(value)!; 86T valueOfT = JsonSerializer.UnboxOnWrite<T>(value)!; 93T valueOfT = JsonSerializer.UnboxOnWrite<T>(value)!; 99T valueOfT = JsonSerializer.UnboxOnWrite<T>(value)!; 105T valueOfT = JsonSerializer.UnboxOnWrite<T>(value)!; 112T valueOfT = JsonSerializer.UnboxOnWrite<T>(value)!;
System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.WriteHelpers.cs (5)
332=> Serialize(writer, JsonSerializer.UnboxOnWrite<T>(rootValue), rootValue); 335=> SerializeAsync(pipeWriter, JsonSerializer.UnboxOnWrite<T>(rootValue), flushThreshold, cancellationToken, rootValue); 338=> SerializeAsync(utf8Json, JsonSerializer.UnboxOnWrite<T>(rootValue), cancellationToken, rootValue); 341=> SerializeAsync(utf8Json, JsonSerializer.UnboxOnWrite<T>(rootValue), cancellationToken, rootValue); 344=> Serialize(utf8Json, JsonSerializer.UnboxOnWrite<T>(rootValue), rootValue);