File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/Microsoft.OpenApi/Extensions Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,8 @@ internal static class StringExtensions
4545 result = default ;
4646 return false ;
4747 }
48- private static ReadOnlyDictionary < string , object > GetEnumValues < T > ( [ DynamicallyAccessedMembers ( DynamicallyAccessedMemberTypes . PublicFields ) ] Type enumType ) where T : Enum
48+ private static ReadOnlyDictionary < string , object > GetEnumValues < T > ( [ DynamicallyAccessedMembers ( DynamicallyAccessedMemberTypes . PublicFields
49+ | DynamicallyAccessedMemberTypes . PublicProperties ) ] Type enumType ) where T : Enum
4950 {
5051 var result = new Dictionary < string , object > ( StringComparer . OrdinalIgnoreCase ) ;
5152 foreach ( var field in enumType . GetFields ( BindingFlags . Public | BindingFlags . Static ) )
You can’t perform that action at this time.
0 commit comments