ADocumentation Index
Fetch the complete documentation index at: https://docs.syntblaze.com/llms.txt
Use this file to discover all available pages before exploring further.
private protected property in C# is a class member whose access is restricted to the containing class and types derived from that containing class, strictly provided that those derived types reside within the same assembly. It represents the logical intersection of internal and protected accessibility modifiers.
At the Common Language Runtime (CLR) level, this access modifier maps to the FamilyAndAssembly visibility attribute.
Access Rules
The C# compiler enforces the following strict resolution rules for aprivate protected property:
- Same Assembly + Derived Class: Accessible.
- Same Assembly + Non-Derived Class: Inaccessible.
- Different Assembly + Derived Class: Inaccessible.
- Different Assembly + Non-Derived Class: Inaccessible.
protected internal (CLR FamilyOrAssembly), which acts as a logical union, granting access to derived classes regardless of their assembly, or any class within the same assembly.
Syntax and Visualization
Property Accessor Asymmetry
Theprivate protected modifier can be applied to the property declaration as a whole, or asymmetrically to individual accessors (get or set). When applied to an accessor, the private protected modifier must be strictly more restrictive than the property’s primary access modifier.
Master C# with Deep Grasping Methodology!Learn More





