Let's say, we have a variable, which we want named Fubar
Let's say that Fubar is a String!
That means, we would define Fubar as so:
public string Fubar;
Now, let's say we want Fubar to have a getter and setter (or in other words, become a C# property)!
private string Fubar;
public string Fubar_gs
{
get
{
//Some fancy logic
return Fubar;
}
set
{
//Some more fancy logic
Fubar = value;
}
}
Well great! That is all fine and dandy, EXCEPT, what if I wanted the PROPERTY to be named Fubar, not the original variable?
Well obviously, I would just rename both variables. But the problem is, what would be the best name for the original variable?
Is there a naming convention for this situation?
