logo

Crowdly

Browser

Add to Chrome

string js = @"{""Id"":1,""id"":2}"; var opt = new JsonSerializerOptions { Prope...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

string js = @"{""Id"":1,""id"":2}";

var opt = new JsonSerializerOptions { PropertyNameCaseInsensitive = true };

var r  = JsonSerializer.Deserialize<Record>(js, opt);

System.Console.WriteLine(r!.Id);

record Record(int Id);

0%
0%
0%
100%
More questions like this

Want instant access to all verified answers on do.ipo.kpi.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome