string folderOfAlarm = @"Alarm\ " + textbox1.Text;
As you can see, I try to declare a path which depends on user input
But I suffer this error: a field initializer cannot reference the nonstatic field method or property
Any knows why? Please help me
Thanks,


Vishal JadavRank #1,692 · 901 reputationPosted Jun 23, 2016, 3:06 AM EDT
Vinay SinghRank #604 · 4K reputationPosted Jun 23, 2016, 3:40 AM EDT
Karthik ElumalaiRank #544 · 4.5K reputationPosted Jun 23, 2016, 8:09 AM EDT