Skip to content

Commit

Permalink
Merge pull request #93 from mhutch/update-actions
Browse files Browse the repository at this point in the history
Update GitHub Actions
  • Loading branch information
mhutch authored May 9, 2024
2 parents b6edf9c + ba90d68 commit 41cad7a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0 # GitVersioning needs deep clone
submodules: recursive

- uses: actions/setup-dotnet@v2
- uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
Expand Down
6 changes: 6 additions & 0 deletions Core/Parser/XmlParserState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,12 @@ class InvalidParserGraphException : Exception
{
public InvalidParserGraphException (string message) : base (message) { }
public InvalidParserGraphException (string message, Exception inner) : base (message, inner) { }

#if NETFRAMEWORK
protected InvalidParserGraphException (
System.Runtime.Serialization.SerializationInfo info,
System.Runtime.Serialization.StreamingContext context) : base (info, context) { }
#endif
}

/// <summary>
Expand All @@ -107,9 +110,12 @@ class InvalidParserStateException : Exception
{
public InvalidParserStateException (string message) : base (message) { }
public InvalidParserStateException (string message, Exception inner) : base (message, inner) { }

#if NETFRAMEWORK
protected InvalidParserStateException (
System.Runtime.Serialization.SerializationInfo info,
System.Runtime.Serialization.StreamingContext context) : base (info, context) { }
#endif

[DoesNotReturn]
internal static void ThrowExpected<T> (XmlParserContext context) where T : XObject
Expand Down

0 comments on commit 41cad7a

Please sign in to comment.