Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# how to find character in string

string str = "str";
int index = str.IndexOf("s");
//index = 0
//https://learn.microsoft.com/en-us/dotnet/api/system.string.indexof?view=net-6.0
Source by learn.microsoft.com #
 
PREVIOUS NEXT
Tagged: #find #character #string
ADD COMMENT
Topic
Name
9+2 =