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

Trimming: EnumInfoLookup

Open twsouthwick opened this issue 3 years ago • 0 comments

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]

twsouthwick avatar Jun 28 '22 21:06 twsouthwick