You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You'll need to also add two new using statements at the top of the file for this to compile:
160
+
You'll need to also add two new `using` directives at the top of the file for this to compile:
161
161
162
162
```csharp
163
163
usingSystem.Net.Http;
@@ -261,6 +261,12 @@ the following changes to the declaration of the `name` field in repo.cs:
261
261
publicstringName { get; set; }
262
262
```
263
263
264
+
To use `[JsonPropertyName]` attribute, you will need to add the <xref:System.Text.Json.Serialization> namespace to the `using` directives:
265
+
266
+
```csharp
267
+
usingSystem.Text.Json.Serialization;
268
+
```
269
+
264
270
This change means you need to change the code that writes the name of each repository in program.cs:
265
271
266
272
```csharp
@@ -370,7 +376,7 @@ method parses a string and creates a <xref:System.DateTime> object using a provi
370
376
metadata to the `DateTime` using a `CultureInfo` object. If the parse operation fails, the
371
377
property accessor throws an exception.
372
378
373
-
To use <xref:System.Globalization.CultureInfo.InvariantCulture>, you will need to add the <xref:System.Globalization> namespace to the `using`statements
379
+
To use <xref:System.Globalization.CultureInfo.InvariantCulture>, you will need to add the <xref:System.Globalization> namespace to the `using`directives
0 commit comments