S
Shapper
Hello,
I have a List<Post> Posts where Post object is:
public class Post {
public Int32 Id { get; set; }
public String Description { get; set; }
}
I have a String[] that has 2 to 4 words. I would like find the posts
which Description contains at least one of these words.
I think I should use Linq's Contains on Description but I am not sure
how to handle the fact I need to check 2, 3 ou 4 words.
And I would like to check it invariant culture and case so:
Camões = camões = camoes = CAMOES
How can I do this?
Thank You,
Miguel
I have a List<Post> Posts where Post object is:
public class Post {
public Int32 Id { get; set; }
public String Description { get; set; }
}
I have a String[] that has 2 to 4 words. I would like find the posts
which Description contains at least one of these words.
I think I should use Linq's Contains on Description but I am not sure
how to handle the fact I need to check 2, 3 ou 4 words.
And I would like to check it invariant culture and case so:
Camões = camões = camoes = CAMOES
How can I do this?
Thank You,
Miguel