Skip to content

Commit

Permalink
readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
reyang committed Apr 26, 2024
1 parent fb82112 commit afa7488
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions docs/logs/complex-objects/FoodRecallNotice.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0

public struct FoodRecallNotice
public readonly struct FoodRecallNotice
{
public string? BrandName { get; set; }
public string? BrandName { get; init; }

Check failure on line 6 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-stable / build-test (windows-latest, net462)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 6 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-stable / build-test (windows-latest, net462)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 6 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net6.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 6 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net6.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 6 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net7.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 6 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net7.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 6 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-stable / build-test (windows-latest, net7.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 6 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-stable / build-test (windows-latest, net7.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 6 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-stable / build-test (windows-latest, net6.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 6 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-stable / build-test (windows-latest, net6.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 6 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net462)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 6 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net462)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 6 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-stable / build-test (windows-latest, net8.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 6 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-stable / build-test (windows-latest, net8.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 6 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net8.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 6 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net8.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

public string? ProductDescription { get; set; }
public string? ProductDescription { get; init; }

Check failure on line 8 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-stable / build-test (windows-latest, net462)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 8 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-stable / build-test (windows-latest, net462)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 8 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net6.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 8 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net6.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 8 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net7.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 8 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net7.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 8 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-stable / build-test (windows-latest, net7.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 8 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-stable / build-test (windows-latest, net7.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 8 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-stable / build-test (windows-latest, net6.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 8 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-stable / build-test (windows-latest, net6.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 8 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net462)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 8 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net462)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 8 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-stable / build-test (windows-latest, net8.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 8 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-stable / build-test (windows-latest, net8.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 8 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net8.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 8 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net8.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

public string? ProductType { get; set; }
public string? ProductType { get; init; }

Check failure on line 10 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-stable / build-test (windows-latest, net462)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 10 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-stable / build-test (windows-latest, net462)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 10 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net6.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 10 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net6.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 10 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net7.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 10 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net7.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 10 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-stable / build-test (windows-latest, net7.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 10 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-stable / build-test (windows-latest, net7.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 10 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-stable / build-test (windows-latest, net6.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 10 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-stable / build-test (windows-latest, net6.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 10 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net462)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 10 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net462)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 10 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-stable / build-test (windows-latest, net8.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 10 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-stable / build-test (windows-latest, net8.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 10 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net8.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 10 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net8.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

public string? RecallReasonDescription { get; set; }
public string? RecallReasonDescription { get; init; }

Check failure on line 12 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-stable / build-test (windows-latest, net462)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 12 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-stable / build-test (windows-latest, net462)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 12 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net6.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 12 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net6.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 12 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net7.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 12 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net7.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 12 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-stable / build-test (windows-latest, net7.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 12 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-stable / build-test (windows-latest, net7.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 12 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-stable / build-test (windows-latest, net6.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 12 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-stable / build-test (windows-latest, net6.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 12 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net462)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 12 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net462)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 12 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-stable / build-test (windows-latest, net8.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 12 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-stable / build-test (windows-latest, net8.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 12 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net8.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 12 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net8.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

public string? CompanyName { get; set; }
public string? CompanyName { get; init; }

Check failure on line 14 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-stable / build-test (windows-latest, net462)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 14 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-stable / build-test (windows-latest, net462)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 14 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net6.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 14 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net6.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 14 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net7.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 14 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net7.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 14 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-stable / build-test (windows-latest, net7.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 14 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-stable / build-test (windows-latest, net7.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 14 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-stable / build-test (windows-latest, net6.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 14 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-stable / build-test (windows-latest, net6.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 14 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net462)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 14 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net462)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 14 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-stable / build-test (windows-latest, net8.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 14 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-stable / build-test (windows-latest, net8.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 14 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net8.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported

Check failure on line 14 in docs/logs/complex-objects/FoodRecallNotice.cs

View workflow job for this annotation

GitHub Actions / build-test-solution-experimental / build-test (windows-latest, net8.0)

Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported
}
12 changes: 6 additions & 6 deletions docs/logs/complex-objects/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ dotnet add package Microsoft.Extensions.Telemetry.Abstractions
Define a new complex data type, as shown in [FoodRecallNotice.cs](./FoodRecallNotice.cs):

```csharp
public struct FoodRecallNotice
public readonly struct FoodRecallNotice
{
public string? BrandName { get; set; }
public string? ProductDescription { get; set; }
public string? ProductType { get; set; }
public string? RecallReasonDescription { get; set; }
public string? CompanyName { get; set; }
public string? BrandName { get; init; }
public string? ProductDescription { get; init; }
public string? ProductType { get; init; }
public string? RecallReasonDescription { get; init; }
public string? CompanyName { get; init; }
}
```

Expand Down

0 comments on commit afa7488

Please sign in to comment.