From 5bc7a1d8deeb14ed68ce2da1dc5768ef020460d1 Mon Sep 17 00:00:00 2001 From: Stuart Mosquera Date: Mon, 27 Oct 2025 12:32:32 -0300 Subject: [PATCH] Adjust sample code to match fixed tutorial --- csharp/getting-started/console-webapiclient/Repository.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/csharp/getting-started/console-webapiclient/Repository.cs b/csharp/getting-started/console-webapiclient/Repository.cs index cd2d4e559dc..2dee1646717 100644 --- a/csharp/getting-started/console-webapiclient/Repository.cs +++ b/csharp/getting-started/console-webapiclient/Repository.cs @@ -1,10 +1,12 @@ -public record class Repository( +using System.Text.Json.Serialization; + +public record class Repository( string Name, string Description, - Uri GitHubHomeUrl, + [property: JsonPropertyName("html_url")] Uri GitHubHomeUrl, Uri Homepage, int Watchers, - DateTime LastPushUtc + [property: JsonPropertyName("pushed_at")] DateTime LastPushUtc ) { public DateTime LastPush => LastPushUtc.ToLocalTime();