📌  相关文章
📜  查找字符串中第一次出现的字符 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:46.432000             🧑  作者: Mango

代码示例1
// applies to C#
string S = "Any String At All"
int Sindex = S.indexOf("A") // accepts string or char arguments. 

// "Sindex" would be equal to "0", as the indexOf(); meathod returns
// the index position of the first occurance of the specified argument.