Skip to content

Commit 3ea9abe

Browse files
author
Dominik Nolte
committed
added dotnet 6.0 framework
fix IFormattable issue
1 parent ffe058f commit 3ea9abe

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

PdfSharpCore/Pdf/PdfInteger.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ namespace PdfSharpCore.Pdf
3838
/// Represents a direct integer value.
3939
/// </summary>
4040
[DebuggerDisplay("({Value})")]
41-
public sealed class PdfInteger : PdfNumber, IConvertible
41+
public sealed class PdfInteger : PdfNumber, IConvertible, IFormattable
4242
{
4343
/// <summary>
4444
/// Initializes a new instance of the <see cref="PdfInteger"/> class.
@@ -175,5 +175,14 @@ uint IConvertible.ToUInt32(IFormatProvider provider)
175175
}
176176

177177
#endregion
178+
179+
#region IFormattable Members
180+
181+
string IFormattable.ToString(string _value, IFormatProvider provider)
182+
{
183+
return _value;
184+
}
185+
186+
#endregion
178187
}
179188
}

PdfSharpCore/PdfSharpCore.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netstandard1.3;netstandard2.0;netcoreapp3.1;net5.0</TargetFrameworks>
4+
<TargetFrameworks>netstandard1.3;netstandard2.0;netcoreapp3.1;net5.0;net6.0</TargetFrameworks>
55
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
66
<Authors>Stefan Steiger and Contributors</Authors>
77
<Description>PdfSharp for .NET Core

0 commit comments

Comments
 (0)