Searching a string in a list - generics. We can have a static generic list item to hold the keywords to be searched.
We can search for a particular keyword using Contains function. Return type of this function is a boolean.
Which ease the way of database search. In case if we want to search through database we require to do the query for that.
The code piece for the searching in a generic list is as follows,
public class CSharp
public static List<string> Keywords = new List<string>(
public static bool IsKeyword(string word)
public static string Identifier(string word)
return "@" + word;