❔ Difference between public property with protected setters and getters and protected property?
q
/close class C
{
public int X { protected get; protected set; }
}- Cannot specify accessibility modifiers for both accessors of the property or indexer 'C.X'