Mega Code Archive

 
Categories / C# Book / 01 Language Basics
 

0092 Nested types

Nested types are also called inner types. To access nested type we have to use the outter type name. using System; class Rectangle{ public class Point{ } } class Test { static void Main() { Rectangle.Point p = new Rectangle.Point(); } }