📌  相关文章
📜  c# 从字符串中获取数字 - C# 代码示例

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

代码示例1
// You can use .NET methods to find specific numbers or characters from strings
// Below is the IndexOf method:
  string example = "abc 123";

  int numbers = example.IndexOf("123");
  int totalNumbers = example[numbers];