Answers for "c# string index of any string"

C#
2

c# find index of character in string

string str = "Now is the time.";
int index = str.IndexOf("h");
Posted by: Guest on March-05-2021
-1

strinng.indexOf c#

int index = String.IndexOf(char x);
int index = String.IndexOf(string x);
Posted by: Guest on November-24-2020

C# Answers by Framework

Browse Popular Code Answers by Language