Open-XML-SDK
Open-XML-SDK copied to clipboard
Trimming: ClassActivator{T} usage
Description
Remove usage of ClassActivator<T> and get activators without using reflection.
Warning:
src\DocumentFormat.OpenXml\Features\ClassActivator{T}.cs(26,31): warning IL2070: 'this' argument doe
s not satisfy 'DynamicallyAccessedMemberTypes.PublicConstructors', 'DynamicallyAccessedMemberTypes.NonPublicConstru
ctors' in call to 'System.Type.GetConstructor(BindingFlags, Binder, CallingConventions, Type[], ParameterModifier[]
)'. The parameter 'type' of method 'DocumentFormat.OpenXml.Features.ClassActivator<T>.CreateActivator(Type)' does n
ot have matching annotations. The source value must declare at least the same requirements as those declared on the
target location it is assigned to. [src\DocumentFormat.OpenXml\DocumentFormat.OpenXml.csproj]