mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-04-05 20:55:01 +08:00
Conditionalize the formatter based serialization bits in InvalidFontFormatException
This commit is contained in:
parent
c6a7a2d0a2
commit
2cf8762128
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user