T
t f
Hi
I have a class with a bunch of private variables in, is there an easy
way to make these have public properties without having to type it all in?
e.g.
public class Fu
{
private float fBar;
//now instead of having to type this
public float Bar
{
get
{
return fBar;
}
set
{
fBar = value;
}
}
}
thanks
t f
I have a class with a bunch of private variables in, is there an easy
way to make these have public properties without having to type it all in?
e.g.
public class Fu
{
private float fBar;
//now instead of having to type this
public float Bar
{
get
{
return fBar;
}
set
{
fBar = value;
}
}
}
thanks
t f