11using System . Collections . Generic ;
2- using System . Linq . Dynamic . Core . Validation ;
32using System . Reflection ;
43
54namespace System . Linq . Dynamic . Core . Parser ;
@@ -23,7 +22,6 @@ internal class PredefinedMethodsHelper
2322 { typeof ( DateTimeOffset ) , [ ] } ,
2423 { typeof ( decimal ) , [ ] } ,
2524 { typeof ( double ) , [ ] } ,
26- // { typeof(Enum), [] },
2725 { typeof ( float ) , [ ] } ,
2826 { typeof ( Guid ) , [ ] } ,
2927 { typeof ( int ) , [ ] } ,
@@ -38,11 +36,11 @@ internal class PredefinedMethodsHelper
3836 { typeof ( ushort ) , [ ] } ,
3937#if NET6_0_OR_GREATER
4038 { typeof ( DateOnly ) , [ ] } ,
41- { typeof ( TimeOnly ) , [ ] } ,
39+ { typeof ( TimeOnly ) , [ ] }
4240#endif
4341 } ;
4442
45- public PredefinedMethodsHelper ( ParsingConfig config )
43+ internal PredefinedMethodsHelper ( ParsingConfig config )
4644 {
4745 foreach ( var kvp in _supported )
4846 {
@@ -61,11 +59,8 @@ public PredefinedMethodsHelper(ParsingConfig config)
6159 }
6260 }
6361
64- public bool IsPredefinedMethod ( Type type , Type declaringType , MemberInfo member )
62+ internal bool IsPredefinedMethod ( Type type , Type declaringType , MemberInfo member )
6563 {
66- Check . NotNull ( type ) ;
67- Check . NotNull ( member ) ;
68-
6964 if ( _supported . TryGetValue ( type , out var supportedMethodsForType ) && supportedMethodsForType . Count > 0 )
7065 {
7166 return supportedMethodsForType . Contains ( member ) ;
0 commit comments