// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using RulesEngine.HelperFunctions; using System; using System.Collections.Generic; using System.Linq.Dynamic.Core.CustomTypeProviders; namespace RulesEngine { public class CustomTypeProvider : DefaultDynamicLinqCustomTypeProvider { private HashSet _types; public CustomTypeProvider(Type[] types) : base() { _types = new HashSet(types ?? new Type[] { }); _types.Add(typeof(ExpressionUtils)); } public override HashSet GetCustomTypes() { return _types; } } }