Skip to content

Commit

Permalink
Enable field
Browse files Browse the repository at this point in the history
  • Loading branch information
WilStead committed Nov 6, 2024
1 parent 47e8263 commit 72811ff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup .NET 8
- name: Setup .NET 9
uses: actions/setup-dotnet@v4
with:
# Semantic version range syntax or exact version of a dotnet version
dotnet-version: '8.x'
dotnet-version: '9.x'
dotnet-quality: 'preview'


- name: Install dependencies
run: dotnet restore
Expand Down
8 changes: 4 additions & 4 deletions src/Client/Internal/WikiState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ public class WikiState
/// </summary>
public bool DefaultNamespace { get; internal set; }

private string? _displayTitle;
/// <summary>
/// The display title of the current page.
/// </summary>
[AllowNull]
[field: AllowNull]

Check warning on line 21 in src/Client/Internal/WikiState.cs

View workflow job for this annotation

GitHub Actions / build, pack, publish, and release

'field' is not a valid attribute location for this declaration. Valid attribute locations for this declaration are 'property'. All attributes in this block will be ignored.

Check warning on line 21 in src/Client/Internal/WikiState.cs

View workflow job for this annotation

GitHub Actions / build, pack, publish, and release

'field' is not a valid attribute location for this declaration. Valid attribute locations for this declaration are 'property'. All attributes in this block will be ignored.
public string DisplayTitle
{
get => _displayTitle ?? WikiTitle ?? _wikiOptions.MainPageTitle;
internal set => _displayTitle = value;
get => field ?? WikiTitle ?? _wikiOptions.MainPageTitle;
internal set;

Check failure on line 25 in src/Client/Internal/WikiState.cs

View workflow job for this annotation

GitHub Actions / build, pack, publish, and release

'WikiState.DisplayTitle.set' must declare a body because it is not marked abstract, extern, or partial

Check failure on line 25 in src/Client/Internal/WikiState.cs

View workflow job for this annotation

GitHub Actions / build, pack, publish, and release

'WikiState.DisplayTitle.set' must declare a body because it is not marked abstract, extern, or partial
}

/// <summary>
Expand Down Expand Up @@ -57,7 +57,7 @@ public string DisplayTitle
/// </summary>
public bool NotAuthorized
{
get => field;
get;

Check failure on line 60 in src/Client/Internal/WikiState.cs

View workflow job for this annotation

GitHub Actions / build, pack, publish, and release

'WikiState.NotAuthorized.get' must declare a body because it is not marked abstract, extern, or partial

Check failure on line 60 in src/Client/Internal/WikiState.cs

View workflow job for this annotation

GitHub Actions / build, pack, publish, and release

'WikiState.NotAuthorized.get' must declare a body because it is not marked abstract, extern, or partial
set => field |= value;
}

Expand Down

0 comments on commit 72811ff

Please sign in to comment.