Regex regEx = new Regex(xmlZone.InnerText, (RegexOptions.Multiline | RegexOptions.IgnoreCase));
matches = regEx.Matches(bldrZone.ToString()); foreach (Match match in matches) {
//code
}
The strings "xmlZone.InnerText" and "bldrZone.ToString()" are available until i try to match "bldrZone.ToString()" with regular expression "xmlZone.InnerText".
"bldrZone.ToString()" becomes unavailable, when i try to use this "matches = regEx.Matches(bldrZone.ToString());"
The error i get is "evaluation of function 'bldrZone.ToString()' cannot take place because the thread is at a location at which function evaluation is not possible".
matches = regEx.Matches(bldrZone.ToString()); foreach (Match match in matches) {
//code
}
The strings "xmlZone.InnerText" and "bldrZone.ToString()" are available until i try to match "bldrZone.ToString()" with regular expression "xmlZone.InnerText".
"bldrZone.ToString()" becomes unavailable, when i try to use this "matches = regEx.Matches(bldrZone.ToString());"
The error i get is "evaluation of function 'bldrZone.ToString()' cannot take place because the thread is at a location at which function evaluation is not possible".