The normal usage for a property in C# is :
private int aVar;
public int AVar { get; set; }
or just
public int AVar { get; set; }
But for reason of clarity I prefer to name private attribute with an _ before :
private int _aVar;
and then a property :
public int AVar
{
get
{
return (_aVar);
}
set
{
_aVar = value;
}
}
Is there a way to do some kind of shortcut to have something like :
private int _aVar;
public int AVar { get; set; } : link _aVar
?
(Other than : "Use the visual studio snippet you lazy bum.", or "In C# everybody uses aVar and a AVar so don't use your stupid _ and everything will be fine." if possible)