Quering a list of strings not an objects #150
-
Hello, var summaries = new[] { "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching" };
var filtered = summaries.Where(item=>item == "Chilly"); |
Beta Was this translation helpful? Give feedback.
Answered by
alirezanet
Feb 14, 2024
Replies: 1 comment
-
using queryBuilder: var filtered = new QueryBuilder<string>()
.UseEmptyMapper()
.AddMap("x", q => q)
.AddCondition("x =Chilly")
.Build(summaries); or var gm = new GridifyMapper<string>().AddMap("x", to: q => q);
var filtered = summaries.AsQueryable().ApplyFiltering("x=Chilly", gm); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
SARM256
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
using queryBuilder:
or