Commit 044dfc7
authored
Edit install-and-use-a-package-using-the-dotnet-cli.md -- remove source of warning (#3220)
The sample code
```csharp
public class Account
{
public string Name { get; set; }
public string Email { get; set; }
...
}
```
leads to warnings:
```
$ dotnet run
Nuget.Quickstart/Program.cs(7,23): warning CS8618: Non-nullable property 'Name' must contain a non-null value when exiting constructor. Consider declaring the property as nullable. [Nuget.Quickstart/Nuget.Quickstart.csproj]
Nuget.Quickstart/Program.cs(8,23): warning CS8618: Non-nullable property 'Email' must contain a non-null value when exiting constructor. Consider declaring the property as nullable. [Nuget.Quickstart/Nuget.Quickstart.csproj]
```
This commit applies a small edit so that `dotnet run` does not warn.
The warnings are not a big deal. They are a small distraction. I propose this edit in case the small distraction is worth removing.1 parent bad8849 commit 044dfc7
1 file changed
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | | - | |
| 70 | + | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
0 commit comments