
using System;using System.Collections.Generic;using System.linq;using System.Text;using System.Text.RegularExpressions;namespace RegexTest{ class Program { static voID Main(string[] args) { string str = "The quick brown fox."; string pat = "fox"; Regex rgx = new Regex(pat,RegexOptions.IgnoreCase); Match matches = rgx.Match(str); Console.ReadKey(); } }} 它编译并运行没有错误.
我在Console.ReadKey()设置了一个断点,因为我想检查变量匹配.
但是我收到了我在这个帖子标题中输入的奇怪错误信息.
网络上并不清楚它的含义.
以上是内存溢出为你收集整理的c# – 当前上下文中不存在名称“匹配”全部内容,希望文章能够帮你解决c# – 当前上下文中不存在名称“匹配”所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)