protected ValueGeneratorMatcher(params Type[] types) { if (types == null) { throw new ArgumentNullException(nameof(types)); } _matcher = (type, referenceName, context) => { return types.Any(x => x == type); }; }