What does% 2 mean?
string[] names = {"Geraldine", "Julieth", "Tatiana", "Maribel", "Susana", "Mónica"};
var Query = from x in names
where (x.Length) > 5 && (((x.Length)%2)!=0)
select x;
Query.Dump();
What does% 2 mean?
string[] names = {"Geraldine", "Julieth", "Tatiana", "Maribel", "Susana", "Mónica"};
var Query = from x in names
where (x.Length) > 5 && (((x.Length)%2)!=0)
select x;
Query.Dump();
In this case, %
is the operator module . For the code you submit, the condition
(((x.Length)%2)!=0)
It means that the length of x must be odd.