use*_*341 10 c# regex
为什么我收到此错误:
Regex名称在当前上下文中不存在.
从我的代码?
if (Regex.IsMatch(string1, @"^[a-zA-Z]+$"))
Dan*_*ite 29
确保System.Text.RegularExpressions引用了命名空间.
System.Text.RegularExpressions
cod*_*keh 5
您需要包括正确的名称空间才能访问Regex该类:
Regex
using System.Text.RegularExpressions;
归档时间:
12 年,4 月 前
查看次数:
15401 次
最近记录: