1 files changed, 8 insertions, 7 deletions
diff --git a/crypto/src/security/GeneralSecurityException.cs b/crypto/src/security/GeneralSecurityException.cs
index c1131f04b..33fd2e543 100644
--- a/crypto/src/security/GeneralSecurityException.cs
+++ b/crypto/src/security/GeneralSecurityException.cs
@@ -1,10 +1,9 @@
using System;
+using System.Runtime.Serialization;
namespace Org.BouncyCastle.Security
{
-#if !PORTABLE
[Serializable]
-#endif
public class GeneralSecurityException
: Exception
{
@@ -13,17 +12,19 @@ namespace Org.BouncyCastle.Security
{
}
- public GeneralSecurityException(
- string message)
+ public GeneralSecurityException(string message)
: base(message)
{
}
- public GeneralSecurityException(
- string message,
- Exception exception)
+ public GeneralSecurityException(string message, Exception exception)
: base(message, exception)
{
}
+
+ protected GeneralSecurityException(SerializationInfo info, StreamingContext context)
+ : base(info, context)
+ {
+ }
}
}
|