Conditionalize the formatter based serialization bits in InvalidFontFormatException

This commit is contained in:
Richard Webb 2024-05-06 15:24:02 +01:00 committed by BobLd
parent c6a7a2d0a2
commit 2cf8762128

View File

@ -1,14 +1,18 @@
namespace UglyToad.PdfPig.Fonts
{
using System;
#if !NET
using System.Runtime.Serialization;
#endif
/// <summary>
/// The exception thrown when an error is encountered parsing a font from the PDF document.
/// This occurs where the format of the font program or dictionary does not meet the specification.
/// </summary>
/// <inheritdoc cref="Exception"/>
#if !NET
[Serializable]
#endif
public class InvalidFontFormatException : Exception
{
/// <inheritdoc />
@ -26,11 +30,13 @@
{
}
#if !NET
/// <inheritdoc />
protected InvalidFontFormatException(
SerializationInfo info,
StreamingContext context) : base(info, context)
{
}
#endif
}
}