mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-12-21 11:13:55 +08:00
Improve code quality (#825)
* Avoid encoding ASCII in more cases * Make Space a const * Use WriteWhiteSpace extension to eliminate possible virtual call * Use ASCII when encoding constrained character subset * Simplify pragmas * Revert Whitespace rename * Fix using statement order * Remove obsolete serialization support on .NET * Remove obsolete serialization support on .NET (part 2)
This commit is contained in:
@@ -139,7 +139,7 @@
|
||||
/// </summary>
|
||||
/// <typeparam name="TPage"></typeparam>
|
||||
/// <typeparam name="TPageFactory"></typeparam>
|
||||
#if NET6_0_OR_GREATER
|
||||
#if NET
|
||||
public void AddPageFactory<TPage, [System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicConstructors)] TPageFactory>() where TPageFactory : IPageFactory<TPage>
|
||||
#else
|
||||
public void AddPageFactory<TPage, TPageFactory>() where TPageFactory : IPageFactory<TPage>
|
||||
|
||||
Reference in New Issue
Block a user