Skip to content

Commit

Permalink
Revert [Obsolete] changes back to only net8.0 to silence compile warn…
Browse files Browse the repository at this point in the history
…ings
  • Loading branch information
jstedfast committed Dec 10, 2023
1 parent f632400 commit 9b908b8
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion MimeKit/Cryptography/CertificateNotFoundException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public CertificateNotFoundException (MailboxAddress mailbox, string message) : b
/// <paramref name="info"/> is <c>null</c>.
/// </exception>
[SecurityCritical]
#if NET6_0_OR_GREATER
#if NET8_0_OR_GREATER
[Obsolete ("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.")]
#endif
public override void GetObjectData (SerializationInfo info, StreamingContext context)
Expand Down
2 changes: 1 addition & 1 deletion MimeKit/Cryptography/DigitalSignatureVerifyException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public DigitalSignatureVerifyException (string message) : base (message)
/// <paramref name="info"/> is <c>null</c>.
/// </exception>
[SecurityCritical]
#if NET6_0_OR_GREATER
#if NET8_0_OR_GREATER
[Obsolete ("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.")]
#endif
public override void GetObjectData (SerializationInfo info, StreamingContext context)
Expand Down
2 changes: 1 addition & 1 deletion MimeKit/Cryptography/PrivateKeyNotFoundException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public PrivateKeyNotFoundException (long keyid, string message) : base (message)
/// <paramref name="info"/> is <c>null</c>.
/// </exception>
[SecurityCritical]
#if NET6_0_OR_GREATER
#if NET8_0_OR_GREATER
[Obsolete ("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.")]
#endif
public override void GetObjectData (SerializationInfo info, StreamingContext context)
Expand Down
2 changes: 1 addition & 1 deletion MimeKit/Cryptography/PublicKeyNotFoundException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public PublicKeyNotFoundException (MailboxAddress mailbox, string message) : bas
/// <paramref name="info"/> is <c>null</c>.
/// </exception>
[SecurityCritical]
#if NET6_0_OR_GREATER
#if NET8_0_OR_GREATER
[Obsolete ("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.")]
#endif
public override void GetObjectData (SerializationInfo info, StreamingContext context)
Expand Down
2 changes: 1 addition & 1 deletion MimeKit/ParseException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public ParseException (string message, int tokenIndex, int errorIndex) : base (m
/// <paramref name="info"/> is <c>null</c>.
/// </exception>
[SecurityCritical]
#if NET6_0_OR_GREATER
#if NET8_0_OR_GREATER
[Obsolete ("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.")]
#endif
public override void GetObjectData (SerializationInfo info, StreamingContext context)
Expand Down
2 changes: 1 addition & 1 deletion MimeKit/Tnef/TnefException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public TnefException (TnefComplianceStatus error, string message) : base (messag
/// <paramref name="info"/> is <c>null</c>.
/// </exception>
[SecurityCritical]
#if NET6_0_OR_GREATER
#if NET8_0_OR_GREATER
[Obsolete ("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.")]
#endif
public override void GetObjectData (SerializationInfo info, StreamingContext context)
Expand Down

0 comments on commit 9b908b8

Please sign in to comment.