diff --git a/README.md b/README.md index 3a34e0d..94256af 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ You can view the API on [FuGet](https://www.fuget.org/packages/Singulink.Reflect ## Benchmarks -Entries with an `_Activator` suffix use `System.Activator` and the entries below that with an `_ObjectFactory` suffix use this library for comparison. +Entries with an `_Activator` suffix use `System.Activator` and those with an `_ObjectFactory` suffix use this library. ### .NET 8 diff --git a/Source/.editorconfig b/Source/.editorconfig index 2983f92..f589f10 100644 --- a/Source/.editorconfig +++ b/Source/.editorconfig @@ -252,7 +252,7 @@ dotnet_naming_style.begins_with_i.capitalization = pascal_case #### Analyzer diagnostics #### -stylecop.documentation.documentExposedElements = false +stylecop.documentation.documentExposedElements = true stylecop.documentation.documentInternalElements = false stylecop.documentation.documentInterfaces = false diff --git a/Source/Singulink.Reflection.ObjectFactory/ObjectFactory.cs b/Source/Singulink.Reflection.ObjectFactory/ObjectFactory.cs index 623c5ca..98f2fb5 100644 --- a/Source/Singulink.Reflection.ObjectFactory/ObjectFactory.cs +++ b/Source/Singulink.Reflection.ObjectFactory/ObjectFactory.cs @@ -5,7 +5,10 @@ using System.Linq.Expressions; using System.Reflection; using System.Runtime.CompilerServices; + +#if NETSTANDARD using System.Runtime.Serialization; +#endif namespace Singulink.Reflection; diff --git a/Source/Singulink.Reflection.ObjectFactory/Polyfills/DynamicallyAccessedMemberTypes.cs b/Source/Singulink.Reflection.ObjectFactory/Polyfills/DynamicallyAccessedMemberTypes.cs index fe8a479..a05caa1 100644 --- a/Source/Singulink.Reflection.ObjectFactory/Polyfills/DynamicallyAccessedMemberTypes.cs +++ b/Source/Singulink.Reflection.ObjectFactory/Polyfills/DynamicallyAccessedMemberTypes.cs @@ -1,4 +1,4 @@ -namespace Singulink.Reflection; +namespace System.Diagnostics.CodeAnalysis; #if NETSTANDARD diff --git a/Source/Singulink.Reflection.ObjectFactory/Polyfills/DynamicallyAccessedMembers.cs b/Source/Singulink.Reflection.ObjectFactory/Polyfills/DynamicallyAccessedMembers.cs index 3cc2a38..56c5eec 100644 --- a/Source/Singulink.Reflection.ObjectFactory/Polyfills/DynamicallyAccessedMembers.cs +++ b/Source/Singulink.Reflection.ObjectFactory/Polyfills/DynamicallyAccessedMembers.cs @@ -1,6 +1,4 @@ -using System; - -namespace Singulink.Reflection; +namespace System.Diagnostics.CodeAnalysis; #if NETSTANDARD