C# TypeInfo IsNestedPublic
Description
TypeInfo IsNestedPublic
Gets a value indicating whether
a class is nested and declared public.
Syntax
TypeInfo.IsNestedPublic
has the following syntax.
public bool IsNestedPublic { get; }
Example
using System;/*ww w. j a v a 2s. c om*/
public class MyClassA
{
public class MyClassB
{
}
public static void Main(string[] args)
{
Type myTypeB = typeof(MyClassA.MyClassB);
Console.WriteLine(myTypeB.IsNestedPublic.ToString());
}
}
The code above generates the following result.