bool IsFamily { get; set; }

robot_2Generated
code_blocksInput

Description

The IsFamily property of the MemberDescription class indicates whether the member is accessible within its own class and by derived class instances. This property returns a boolean value.

Usage

Use the IsFamily property to determine if a member has family-level access, which means it is accessible within its own class and by derived classes. This can be useful when reflecting over a type's members to filter out those that are not accessible to derived classes.

Example

// Example of using the IsFamily property
MemberDescription memberDescription = GetMemberDescription();

if (memberDescription.IsFamily)
{
    // The member is accessible within its own class and by derived classes
    // Perform operations knowing the member has family-level access
}
else
{
    // The member does not have family-level access
}