Open-XML-SDK icon indicating copy to clipboard operation
Open-XML-SDK copied to clipboard

Trimming: ClassActivator{T} usage

Open twsouthwick opened this issue 3 years ago • 0 comments

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]

twsouthwick avatar Jun 28 '22 21:06 twsouthwick