public List <PropertyInfo> GetSearchableProperties(IList <PropertyInfo> typeProperties) { return(typeProperties.Where(propertyInfo => !NonSearchableProperties.Any(nonSearchableProperty => nonSearchableProperty.Name == propertyInfo.Name) ).ToList()); }