我只是有一个看起来像这样的字符串:
"7,真实,NA,假:67,假,NA,假:5,假,NA,假:5,假,NA,假"
我想要做的就是计算字符串" true "出现在该字符串中的次数.我觉得答案是这样的,String.CountAllTheTimesThisStringAppearsInThatString()但由于某种原因,我无法弄明白.救命?
String.CountAllTheTimesThisStringAppearsInThatString()
c# string count
c# ×1
count ×1
string ×1