Click here to Skip to main content
15,889,462 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
Can we use Console.ReadLine() for the string "tt"

C#
int TextIndex = Array.FindIndex(stringArray, m => m == "tt");


Please reply
Posted

hi please refer to the following link
hope it will help you


http://www.dotnetperls.com/indexof[]
 
Share this answer
 
In short the answer is "yes"

Here are some links that should point you in the right direction for "how"

https://www.google.com/search?sitesearch=dotnetperls.com&q=console.readline&safe=strict[^]
 
Share this answer
 
C#
string s=Console.ReadLine();
int TextIndex = Array.FindIndex(stringArray, m => m == s);
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900