V
vijaysambhe
Hi ,
Can i populate the class variables in following fashion?
public class abc
{
string name;
public string Name
{
set
{
name = value;
}
}
public abc()
{
}
}
abc myclass1 = new abc()
abc.Name="google";
or
should I always populate through constructor or any other method of
class abc?
thanks
Vijay
Can i populate the class variables in following fashion?
public class abc
{
string name;
public string Name
{
set
{
name = value;
}
}
public abc()
{
}
}
abc myclass1 = new abc()
abc.Name="google";
or
should I always populate through constructor or any other method of
class abc?
thanks
Vijay