Click here to Skip to main content
15,945,603 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"

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

Please reply

hi please refer to the following link
hope it will help you[]
Share this answer
In short the answer is "yes"

Here are some links that should point you in the right direction for "how"[^]
Share this answer
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