المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : An object reference is required for the non-static field, method, or property !? :(



C# Programming
05-01-2010, 01:30 PM
Hey guys, I know this is simple stuff still would appreciate ur help, I assumed by declaring this method static It would solve the problem but hasn't ... http://www.barakasoft.com/script/Forums/Images/smiley_frown.gif
I get this error: An object reference is required for the non-static field, method, or property
public string _variable = String.Empty;
public static string Variable
{
set { _variable = value; }
get { return _variable; }
}