示例#1
0
        public static bool HasField <T>(this FilterNode <T>?filter, string field)
        {
            if (filter == null)
            {
                return(false);
            }

            var fields = new HashSet <string>(StringComparer.OrdinalIgnoreCase);

            filter.AddFields(fields);

            return(fields.Contains(field));
        }