hi friends i have problem with using get or set in class in c# when i use get or set in gives error(invalid token { in class) pls, see below code,i have this problem in it
static int abcd
{
get
{
return _abcd;
}
}
thanx
this is the complete code,i dont have this problem with any of your codes but just this:
namespace ConsoleApplication2
{
class Program
{
class Car
{
private int _speed;
public int Speed;
{
get
{
return _speed
}
}
}
}
}