C# TypeInfo IsNestedFamANDAssem
Description
TypeInfo IsNestedFamANDAssem
Gets a value indicating
whether the Type is nested and visible only to classes that belong to both
its own family and its own assembly.
Syntax
TypeInfo.IsNestedFamANDAssem
has the following syntax.
public bool IsNestedFamANDAssem { get; }
Example
The following example demonstrates a use of the IsNestedFamANDAssem property.
//from ww w. ja va 2 s . co m
using System;
class MyClassA
{
protected internal class MyClassB
{
}
}
class MyTestClass
{
public static void Main(string[] args)
{
Type myTypeB = typeof(MyClassA.MyClassB);
Console.WriteLine("\nThe IsNestedFamANDAssem property value of the nested class is {0}.", myTypeB.IsNestedFamANDAssem.ToString());
}
}
The code above generates the following result.