how can i create English 2 English dictionary
how can i create English 2 English dictionary in c# and how can i search data in dictionary please help any brother or sister
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Shweta LodhaPosted Jun 3, 2014, 3:47 AM
Below is the sample code to create and search item in a dictionary:
Dictionary
dictionary.Add("Rude", "Harsh");
dictionary.Add("Adorable", "Lovable");
// Check if Dictionary contains the given word
if (dictionary.ContainsKey("Adorable"))
{
int value = dictionary["Adorable"];
Console.WriteLine(value);
}
Based on your data source, you can change the way dictionary is populated.