Remove old ns1.x code
@@ -28,9 +28,7 @@ namespace Iced.Intel {
/// <summary>
/// Thrown if the encoder can't encode an instruction
/// </summary>
-#if !NO_SERIALIZATION
[Serializable]
-#endif
public class EncoderException : Exception {
/// <summary>
/// The instruction that couldn't be encoded
@@ -44,14 +42,12 @@ namespace Iced.Intel {
/// <param name="instruction">Instruction</param>
public EncoderException(string message, in Instruction instruction) : base(message) => Instruction = instruction;
-#if !NO_SERIALIZATION
/// <summary>
/// Constructor
/// </summary>
/// <param name="info"></param>
/// <param name="context"></param>
protected EncoderException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { }
-#endif
}
}
#endif
