Skip to content

Commit 20b0c40

Browse files
committed
Fix warning SYSLIB0051
> SYSLIB0051: 'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)
1 parent f061446 commit 20b0c40

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/NetMQ.Tests/ThrowingTraceListener.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
22
using System.Diagnostics;
3-
using System.Runtime.Serialization;
43

54
namespace NetMQ.Tests
65
{
@@ -19,7 +18,6 @@ public override void WriteLine(string? message)
1918
{
2019
}
2120

22-
[Serializable]
2321
public class DebugAssertFailureException : Exception
2422
{
2523
public DebugAssertFailureException()
@@ -33,10 +31,6 @@ public DebugAssertFailureException(string message) : base(message)
3331
public DebugAssertFailureException(string message, Exception inner) : base(message, inner)
3432
{
3533
}
36-
37-
protected DebugAssertFailureException(SerializationInfo info, StreamingContext context) : base(info, context)
38-
{
39-
}
4034
}
4135
}
4236
}

0 commit comments

Comments
 (0)