The c# way is
private string _fubar;
public string Fubar
{
get
{
return _fubar;
}
set
{
_fubar = value;
}
}
However, if it's just a basic getter/setter with no extra logic, you can just write
public string Fubar { get; set; }
No need for a backing variable or anything.