mat*_*ieu 35
使用LINQ:
var count = jobId.Count(x => Char.IsDigit(x));
Run Code Online (Sandbox Code Playgroud)
要么
var count = jobId.Count(Char.IsDigit);
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
19576 次 |
| 最近记录: |