Open-XML-SDK
Open-XML-SDK copied to clipboard
Trimming: EnumInfoLookup
Description
We should generate a feature that can produce enum info without reflection. This should be addressed in two phases:
- Move enum info retrieval to a separate feature
- 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]