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:
Jason Nelson
2024-05-02 23:36:19 -07:00
committed by GitHub
parent 7f42a8d60c
commit da44e1a540
20 changed files with 152 additions and 148 deletions

View File

@@ -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>