You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fix CVE-2024-51417
- remove 'object' from PredefinedTypes
- refactor DefaultDynamicLinqCustomTypeProvider so that only classes with DynamicLinqType annotation are resolved
* UsingStaticClass_WhenAddedDefaultDynamicLinqCustomTypeProvider_ShouldBeOk
* Fix Select_Dynamic_SystemType1 unit test
* Add more tests
* re-enable old constructor for DefaultDynamicLinqCustomTypeProvider
* IDynamicLinkCustomTypeProvider
* add comment to PredefinedTypesHelper
* [Theory(Skip = "873")]
/// Initializes a new instance of the <see cref="DefaultDynamicLinqCustomTypeProvider"/> class.
27
25
/// Backwards compatibility for issue https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/830.
28
26
/// </summary>
29
27
/// <param name="cacheCustomTypes">Defines whether to cache the CustomTypes (including extension methods) which are found in the Application Domain. Default set to 'true'.</param>
30
-
[Obsolete("Please use the DefaultDynamicLinqCustomTypeProvider(ParsingConfig config, bool cacheCustomTypes = true) constructor.")]
28
+
[Obsolete("Please use the DefaultDynamicLinqCustomTypeProvider(ParsingConfig config, IList<Type> additionalTypes, bool cacheCustomTypes = true) constructor.")]
/// <param name="cacheCustomTypes">Defines whether to cache the CustomTypes (including extension methods) which are found in the Application Domain. Default set to 'true'.</param>
/// <param name="additionalTypes">A list of additional types (without the DynamicLinqTypeAttribute annotation) which should also be resolved.</param>
47
+
/// <param name="cacheCustomTypes">Defines whether to cache the CustomTypes (including extension methods) which are found in the Application Domain. Default set to 'true'.</param>
Copy file name to clipboardexpand all lines: src/System.Linq.Dynamic.Core/ParsingConfig.cs
+19
Original file line number
Diff line number
Diff line change
@@ -71,6 +71,25 @@ public IDynamicLinkCustomTypeProvider? CustomTypeProvider
71
71
}
72
72
}
73
73
74
+
/// <summary>
75
+
/// Sets the CustomTypeProvider to <see cref="DefaultDynamicLinqCustomTypeProvider"/>.
76
+
/// </summary>
77
+
/// <param name="cacheCustomTypes">Defines whether to cache the CustomTypes (including extension methods) which are found in the Application Domain. Default set to <c>true</c>.</param>
/// Sets the CustomTypeProvider to <see cref="DefaultDynamicLinqCustomTypeProvider"/>.
85
+
/// </summary>
86
+
/// <param name="cacheCustomTypes">Defines whether to cache the CustomTypes (including extension methods) which are found in the Application Domain. Default set to <c>true</c>.</param>
87
+
/// <param name="additionalTypes">A list of additional types (without the DynamicLinqTypeAttribute annotation) which should also be resolved.</param>
0 commit comments