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

Trimming: EnumInfoLookup #1175

Closed
twsouthwick opened this issue Jun 28, 2022 · 0 comments
Closed

Trimming: EnumInfoLookup #1175

twsouthwick opened this issue Jun 28, 2022 · 0 comments

Comments

@twsouthwick
Copy link
Member

Description

We should generate a feature that can produce enum info without reflection. This should be addressed in two phases:

  1. Move enum info retrieval to a separate feature
  2. Remove reflection

Warning:

W:\openxml\sdk\src\DocumentFormat.OpenXml\SimpleTypes\EnumInfoLookup.cs(123,33): warning IL2090: 'this' argument do
es not satisfy 'DynamicallyAccessedMemberTypes.PublicFields', 'DynamicallyAccessedMemberTypes.NonPublicFields' in c
all to 'System.Reflection.TypeInfo.GetDeclaredField(String)'. The generic parameter 'TEnum' of 'DocumentFormat.Open
Xml.EnumInfoLookup<TEnum>' does not have matching annotations. The source value must declare at least the same requ
irements as those declared on the target location it is assigned to. [W:\openxml\sdk\src\DocumentFormat.OpenXml\Doc
umentFormat.OpenXml.csproj]
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

No branches or pull requests

1 participant