What is the c# protected property naming convention?

  • Thread starter Thread starter E-John
  • Start date Start date
E

E-John

Guest
Dear All,


What is the c# protected property naming convention?

For instance, if there is a protected property string,

naming convention will be

_name, name, Name or others?


Thanks and Best regards,

E-John

public class BaseClass
{
// protected property naming convention?
// _name, name or Name?
protected string name;

public BaseClass()
{
name = "Base Class";
}
}

public class DerivedClass : BaseClass
{
public DerivedClass()
{
name = "Derived Class";
}
}

Continue reading...
 
Back
Top