Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't use reflection for part creation #1240

Merged

Conversation

twsouthwick
Copy link
Member

@twsouthwick twsouthwick commented Nov 22, 2022

Fixes #1173

@twsouthwick twsouthwick merged commit e224ff5 into dotnet:main Nov 23, 2022
@twsouthwick twsouthwick deleted the dont-use-reflection-for-part-creation branch November 23, 2022 00:51
@@ -11,6 +11,8 @@ public class SchemaType

public bool IsPart => !string.IsNullOrEmpty(Part);

public bool IsRootElement => IsPart || BaseClass == "OpenXmlPartRootElement" || BaseClass == "OpenXmlPartRootElement";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@twsouthwick it looks like one of these BaseClass == "OpenXmlPartRootElement" conditions might be removed 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Trimming: ClassActivator{T} usage
2 participants