Skip to content

Commit 5fe8294

Browse files
Remove members of HookException related to binary formatters
1 parent 3065f47 commit 5fe8294

File tree

2 files changed

+0
-37
lines changed

2 files changed

+0
-37
lines changed

SharpHook/HookException.cs

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
using System.Runtime.Serialization;
2-
31
namespace SharpHook;
42

53
/// <summary>
@@ -69,34 +67,6 @@ public HookException(UioHookResult result, string message, Exception innerExcept
6967
: base(message, innerException) =>
7068
this.Result = result;
7169

72-
#if NET8_0_OR_GREATER
73-
[Obsolete(
74-
"This API supports obsolete formatter-based serialization. " +
75-
"It should not be called or extended by application code.",
76-
DiagnosticId = "SYSLIB0051")]
77-
#endif
78-
private HookException(SerializationInfo info, StreamingContext context)
79-
: base(info, context) =>
80-
this.Result = (UioHookResult)
81-
(info.GetValue(nameof(this.Result), typeof(UioHookResult)) ?? UioHookResult.Failure);
82-
83-
/// <summary>
84-
/// Sets the <see cref="SerializationInfo" /> with information about this exception.
85-
/// </summary>
86-
/// <param name="info">The serialization info to set.</param>
87-
/// <param name="context">The streaming context.</param>
88-
#if NET8_0_OR_GREATER
89-
[Obsolete(
90-
"This API supports obsolete formatter-based serialization. " +
91-
"It should not be called or extended by application code.",
92-
DiagnosticId = "SYSLIB0051")]
93-
#endif
94-
public override void GetObjectData(SerializationInfo info, StreamingContext context)
95-
{
96-
base.GetObjectData(info, context);
97-
info.AddValue(nameof(Result), this.Result);
98-
}
99-
10070
/// <summary>
10171
/// Gets the result of an opetaion which caused this exception.
10272
/// </summary>

SharpHook/SharpHook.xml

Lines changed: 0 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)