C# Type IsNestedFamANDAssem
Description
Type 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
Type.IsNestedFamANDAssem
has the following syntax.
public bool IsNestedFamANDAssem { get; }
Example
The following example demonstrates a use of the IsNestedFamANDAssem property.
// w ww. j a v a 2 s . c om
using System;
// Enclose a class.
class MyClassA
{
protected internal class MyClassB
{
}
}
class MyTestClass
{
public static void Main(string[] args)
{
Type myTypeB = typeof(MyClassA.MyClassB);
Console.WriteLine(myTypeB.IsNestedFamANDAssem.ToString());
}
}
The code above generates the following result.