我正在尝试创建一个句子计数功能,但我面临以下错误。我应该将数据类型更改为什么?
private int SplitSentences(string fbStatus)
{
int splitSentences = Regex.Split(fbStatus, @"(?<=['""A-Za-z0-9][\.\!\?])\s+(?=[A-Z])");
label_totalsentencecount.Text = splitSentences.ToString();
return splitSentences;
}