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!.
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!.