Skip to content

Commit 0855174

Browse files
authored
re-enable old constructor for DefaultDynamicLinqCustomTypeProvider
1 parent 23a56ea commit 0855174

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/System.Linq.Dynamic.Core/CustomTypeProviders/DefaultDynamicLinqCustomTypeProvider.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,16 @@ public class DefaultDynamicLinqCustomTypeProvider : AbstractDynamicLinqCustomTyp
2020
private HashSet<Type>? _cachedCustomTypes;
2121
private Dictionary<Type, List<MethodInfo>>? _cachedExtensionMethods;
2222

23+
/// <summary>
24+
/// Initializes a new instance of the <see cref="DefaultDynamicLinqCustomTypeProvider"/> class.
25+
/// Backwards compatibility for issue https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/830.
26+
/// </summary>
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>
28+
[Obsolete("Please use the DefaultDynamicLinqCustomTypeProvider(ParsingConfig config, IList<Type> additionalTypes, bool cacheCustomTypes = true) constructor.")]
29+
public DefaultDynamicLinqCustomTypeProvider(bool cacheCustomTypes = true) : this(ParsingConfig.Default, cacheCustomTypes)
30+
{
31+
}
32+
2333
/// <summary>
2434
/// Initializes a new instance of the <see cref="DefaultDynamicLinqCustomTypeProvider"/> class.
2535
/// </summary>

0 commit comments

Comments
 (0)