I have code that looks like this:
List<Meme> myList = new List<Meme>();
myList.Add(DogThugLife);
myList.Add(AintNobodyGotTimeForThat);
myList.Add(WashingTheDishes);
I was wondering how I can add a search feature so people can search for the items in this list. I have also made a Meme class:
class Meme
{
public string Name { get; set; }
public string Topic { get; set; }
public bool Popular { get; set; }
public string Identifier { get; set; }
}
and some info on the items in my list:
Meme DogThugLife = new Meme();
DogThugLife.Name = "Dog Thug Life";
DogThugLife.Topic = "Thug Life";
DogThugLife.Popular = false;
So basically I want users to be able to search for these properties. Thanks!