Skip to content

Commit

Permalink
Mark overrides of obsolete members obsolete
Browse files Browse the repository at this point in the history
These are obsolete in newer .NET versions.
  • Loading branch information
oschwald committed Nov 15, 2023
1 parent 01f9e0d commit 7c58ed5
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 5 deletions.
3 changes: 2 additions & 1 deletion MaxMind.MinFraud/Exception/AuthenticationException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ public AuthenticationException(string message, System.Exception innerException)
/// </summary>
/// <param name="info"></param>
/// <param name="context"></param>
[Obsolete]
protected AuthenticationException(SerializationInfo info, StreamingContext context) : base(info, context)
{
}
}
}
}
4 changes: 3 additions & 1 deletion MaxMind.MinFraud/Exception/HttpException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ public HttpException(string message, HttpStatusCode httpStatus, Uri? uri, System
/// </summary>
/// <param name="info"></param>
/// <param name="context"></param>
[Obsolete]
protected HttpException(SerializationInfo info, StreamingContext context) : base(info, context)
{
HttpStatus = (HttpStatusCode)(info.GetValue("MaxMind.MinFraud.Exception.HttpException.HttpStatus", typeof(HttpStatusCode))
Expand All @@ -92,6 +93,7 @@ protected HttpException(SerializationInfo info, StreamingContext context) : base
/// </summary>
/// <param name="info"></param>
/// <param name="context"></param>
[Obsolete]
public override void GetObjectData(SerializationInfo info, StreamingContext context)

Check warning on line 97 in MaxMind.MinFraud/Exception/HttpException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on ubuntu-latest

Obsolete member 'HttpException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 97 in MaxMind.MinFraud/Exception/HttpException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on ubuntu-latest

Obsolete member 'HttpException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 97 in MaxMind.MinFraud/Exception/HttpException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on ubuntu-latest

Obsolete member 'HttpException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 97 in MaxMind.MinFraud/Exception/HttpException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on ubuntu-latest

Obsolete member 'HttpException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 97 in MaxMind.MinFraud/Exception/HttpException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on ubuntu-latest

Obsolete member 'HttpException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 97 in MaxMind.MinFraud/Exception/HttpException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on ubuntu-latest

Obsolete member 'HttpException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 97 in MaxMind.MinFraud/Exception/HttpException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on ubuntu-latest

Obsolete member 'HttpException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 97 in MaxMind.MinFraud/Exception/HttpException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on ubuntu-latest

Obsolete member 'HttpException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 97 in MaxMind.MinFraud/Exception/HttpException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on ubuntu-latest

Obsolete member 'HttpException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 97 in MaxMind.MinFraud/Exception/HttpException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on ubuntu-latest

Obsolete member 'HttpException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 97 in MaxMind.MinFraud/Exception/HttpException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on macos-latest

Obsolete member 'HttpException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 97 in MaxMind.MinFraud/Exception/HttpException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on macos-latest

Obsolete member 'HttpException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 97 in MaxMind.MinFraud/Exception/HttpException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on macos-latest

Obsolete member 'HttpException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 97 in MaxMind.MinFraud/Exception/HttpException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on macos-latest

Obsolete member 'HttpException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 97 in MaxMind.MinFraud/Exception/HttpException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on macos-latest

Obsolete member 'HttpException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 97 in MaxMind.MinFraud/Exception/HttpException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on macos-latest

Obsolete member 'HttpException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 97 in MaxMind.MinFraud/Exception/HttpException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on macos-latest

Obsolete member 'HttpException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 97 in MaxMind.MinFraud/Exception/HttpException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on macos-latest

Obsolete member 'HttpException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 97 in MaxMind.MinFraud/Exception/HttpException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on macos-latest

Obsolete member 'HttpException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 97 in MaxMind.MinFraud/Exception/HttpException.cs

View workflow job for this annotation

GitHub Actions / CodeQL-Build

Obsolete member 'HttpException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 97 in MaxMind.MinFraud/Exception/HttpException.cs

View workflow job for this annotation

GitHub Actions / CodeQL-Build

Obsolete member 'HttpException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 97 in MaxMind.MinFraud/Exception/HttpException.cs

View workflow job for this annotation

GitHub Actions / CodeQL-Build

Obsolete member 'HttpException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 97 in MaxMind.MinFraud/Exception/HttpException.cs

View workflow job for this annotation

GitHub Actions / CodeQL-Build

Obsolete member 'HttpException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 97 in MaxMind.MinFraud/Exception/HttpException.cs

View workflow job for this annotation

GitHub Actions / CodeQL-Build

Obsolete member 'HttpException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 97 in MaxMind.MinFraud/Exception/HttpException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on windows-latest

Obsolete member 'HttpException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 97 in MaxMind.MinFraud/Exception/HttpException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on windows-latest

Obsolete member 'HttpException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 97 in MaxMind.MinFraud/Exception/HttpException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on windows-latest

Obsolete member 'HttpException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 97 in MaxMind.MinFraud/Exception/HttpException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on windows-latest

Obsolete member 'HttpException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 97 in MaxMind.MinFraud/Exception/HttpException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on windows-latest

Obsolete member 'HttpException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 97 in MaxMind.MinFraud/Exception/HttpException.cs

View workflow job for this annotation

GitHub Actions / CodeQL-Build

Obsolete member 'HttpException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 97 in MaxMind.MinFraud/Exception/HttpException.cs

View workflow job for this annotation

GitHub Actions / CodeQL-Build

Obsolete member 'HttpException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 97 in MaxMind.MinFraud/Exception/HttpException.cs

View workflow job for this annotation

GitHub Actions / CodeQL-Build

Obsolete member 'HttpException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 97 in MaxMind.MinFraud/Exception/HttpException.cs

View workflow job for this annotation

GitHub Actions / CodeQL-Build

Obsolete member 'HttpException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 97 in MaxMind.MinFraud/Exception/HttpException.cs

View workflow job for this annotation

GitHub Actions / CodeQL-Build

Obsolete member 'HttpException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 97 in MaxMind.MinFraud/Exception/HttpException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on windows-latest

Obsolete member 'HttpException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 97 in MaxMind.MinFraud/Exception/HttpException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on windows-latest

Obsolete member 'HttpException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 97 in MaxMind.MinFraud/Exception/HttpException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on windows-latest

Obsolete member 'HttpException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 97 in MaxMind.MinFraud/Exception/HttpException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on windows-latest

Obsolete member 'HttpException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 97 in MaxMind.MinFraud/Exception/HttpException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on windows-latest

Obsolete member 'HttpException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'
{
base.GetObjectData(info, context);
Expand All @@ -110,4 +112,4 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont
/// </summary>
public Uri? Uri { get; init; }
}
}
}
3 changes: 2 additions & 1 deletion MaxMind.MinFraud/Exception/InsufficientFundsException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ public InsufficientFundsException(string message, System.Exception innerExceptio
/// </summary>
/// <param name="info"></param>
/// <param name="context"></param>
[Obsolete]
protected InsufficientFundsException(SerializationInfo info, StreamingContext context) : base(info, context)
{
}
}
}
}
2 changes: 2 additions & 0 deletions MaxMind.MinFraud/Exception/InvalidRequestException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public InvalidRequestException(string message, string code, Uri? uri, System.Exc
/// </summary>
/// <param name="info"></param>
/// <param name="context"></param>
[Obsolete]
protected InvalidRequestException(SerializationInfo info, StreamingContext context) : base(info, context)
{
Code = info.GetString("MaxMind.MinFraud.Exception.InvalidRequestException.Code")
Expand All @@ -81,6 +82,7 @@ protected InvalidRequestException(SerializationInfo info, StreamingContext conte
/// </summary>
/// <param name="info"></param>
/// <param name="context"></param>
[Obsolete]
public override void GetObjectData(SerializationInfo info, StreamingContext context)

Check warning on line 86 in MaxMind.MinFraud/Exception/InvalidRequestException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on ubuntu-latest

Obsolete member 'InvalidRequestException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 86 in MaxMind.MinFraud/Exception/InvalidRequestException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on ubuntu-latest

Obsolete member 'InvalidRequestException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 86 in MaxMind.MinFraud/Exception/InvalidRequestException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on ubuntu-latest

Obsolete member 'InvalidRequestException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 86 in MaxMind.MinFraud/Exception/InvalidRequestException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on ubuntu-latest

Obsolete member 'InvalidRequestException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 86 in MaxMind.MinFraud/Exception/InvalidRequestException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on ubuntu-latest

Obsolete member 'InvalidRequestException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 86 in MaxMind.MinFraud/Exception/InvalidRequestException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on ubuntu-latest

Obsolete member 'InvalidRequestException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 86 in MaxMind.MinFraud/Exception/InvalidRequestException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on ubuntu-latest

Obsolete member 'InvalidRequestException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 86 in MaxMind.MinFraud/Exception/InvalidRequestException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on ubuntu-latest

Obsolete member 'InvalidRequestException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 86 in MaxMind.MinFraud/Exception/InvalidRequestException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on macos-latest

Obsolete member 'InvalidRequestException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 86 in MaxMind.MinFraud/Exception/InvalidRequestException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on macos-latest

Obsolete member 'InvalidRequestException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 86 in MaxMind.MinFraud/Exception/InvalidRequestException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on macos-latest

Obsolete member 'InvalidRequestException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 86 in MaxMind.MinFraud/Exception/InvalidRequestException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on macos-latest

Obsolete member 'InvalidRequestException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 86 in MaxMind.MinFraud/Exception/InvalidRequestException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on macos-latest

Obsolete member 'InvalidRequestException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 86 in MaxMind.MinFraud/Exception/InvalidRequestException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on macos-latest

Obsolete member 'InvalidRequestException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 86 in MaxMind.MinFraud/Exception/InvalidRequestException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on macos-latest

Obsolete member 'InvalidRequestException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 86 in MaxMind.MinFraud/Exception/InvalidRequestException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on macos-latest

Obsolete member 'InvalidRequestException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 86 in MaxMind.MinFraud/Exception/InvalidRequestException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on macos-latest

Obsolete member 'InvalidRequestException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 86 in MaxMind.MinFraud/Exception/InvalidRequestException.cs

View workflow job for this annotation

GitHub Actions / CodeQL-Build

Obsolete member 'InvalidRequestException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 86 in MaxMind.MinFraud/Exception/InvalidRequestException.cs

View workflow job for this annotation

GitHub Actions / CodeQL-Build

Obsolete member 'InvalidRequestException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 86 in MaxMind.MinFraud/Exception/InvalidRequestException.cs

View workflow job for this annotation

GitHub Actions / CodeQL-Build

Obsolete member 'InvalidRequestException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 86 in MaxMind.MinFraud/Exception/InvalidRequestException.cs

View workflow job for this annotation

GitHub Actions / CodeQL-Build

Obsolete member 'InvalidRequestException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 86 in MaxMind.MinFraud/Exception/InvalidRequestException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on windows-latest

Obsolete member 'InvalidRequestException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 86 in MaxMind.MinFraud/Exception/InvalidRequestException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on windows-latest

Obsolete member 'InvalidRequestException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 86 in MaxMind.MinFraud/Exception/InvalidRequestException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on windows-latest

Obsolete member 'InvalidRequestException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 86 in MaxMind.MinFraud/Exception/InvalidRequestException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on windows-latest

Obsolete member 'InvalidRequestException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 86 in MaxMind.MinFraud/Exception/InvalidRequestException.cs

View workflow job for this annotation

GitHub Actions / CodeQL-Build

Obsolete member 'InvalidRequestException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 86 in MaxMind.MinFraud/Exception/InvalidRequestException.cs

View workflow job for this annotation

GitHub Actions / CodeQL-Build

Obsolete member 'InvalidRequestException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 86 in MaxMind.MinFraud/Exception/InvalidRequestException.cs

View workflow job for this annotation

GitHub Actions / CodeQL-Build

Obsolete member 'InvalidRequestException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 86 in MaxMind.MinFraud/Exception/InvalidRequestException.cs

View workflow job for this annotation

GitHub Actions / CodeQL-Build

Obsolete member 'InvalidRequestException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 86 in MaxMind.MinFraud/Exception/InvalidRequestException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on windows-latest

Obsolete member 'InvalidRequestException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 86 in MaxMind.MinFraud/Exception/InvalidRequestException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on windows-latest

Obsolete member 'InvalidRequestException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 86 in MaxMind.MinFraud/Exception/InvalidRequestException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on windows-latest

Obsolete member 'InvalidRequestException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'

Check warning on line 86 in MaxMind.MinFraud/Exception/InvalidRequestException.cs

View workflow job for this annotation

GitHub Actions / Dotnet on windows-latest

Obsolete member 'InvalidRequestException.GetObjectData(SerializationInfo, StreamingContext)' overrides non-obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'
{
base.GetObjectData(info, context);
Expand Down
3 changes: 2 additions & 1 deletion MaxMind.MinFraud/Exception/MinFraudException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ public MinFraudException(string message, System.Exception innerException) : base
/// </summary>
/// <param name="info"></param>
/// <param name="context"></param>
[Obsolete]
protected MinFraudException(SerializationInfo info, StreamingContext context) : base(info, context)
{
}
}
}
}
3 changes: 2 additions & 1 deletion MaxMind.MinFraud/Exception/PermissionRequiredException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ public PermissionRequiredException(string message, System.Exception innerExcepti
/// </summary>
/// <param name="info"></param>
/// <param name="context"></param>
[Obsolete]
protected PermissionRequiredException(SerializationInfo info, StreamingContext context) : base(info, context)
{
}
}
}
}

0 comments on commit 7c58ed5

Please sign in to comment.