我的意思是不去
using System.Text.RegularExpressions; [...] Regex.IsMatch(string, pattern, RegexOptions.IgnoreCase);
也可以做到
System.Text.RegularExpressions.Regex.IsMatch(string, pattern, RegexOptions.IgnoreCase);
除了可读性之外,这两种选择还有什么好处吗?
它被编译成同样的东西,但是: