Advanced C#
Q94 / 100

What is the .NET System.Text.Json source generation?

Correct! Well done.

Incorrect.

The correct answer is B) A source generator that produces optimized serialization code at compile time for AOT compatibility and improved performance

B

Correct Answer

A source generator that produces optimized serialization code at compile time for AOT compatibility and improved performance

Explanation

[JsonSerializable(typeof(User))] attribute on a JsonSerializerContext generates optimal serializers. Eliminates reflection, enabling NativeAOT compatibility.

Progress
94/100