Can someone explain me what's wrong with this code ?
public class a {
private string patr = @"\w@\w\.\w";
private Regex regexp = new Regex(patr);
....
I know if i change the accesor modifier of patr from private to static it runs, but i'd like to know why ..
Thanks!.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.