Jon Jagger
jon@jaggersoft.com
Table of Contents 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 Notes DownloadECMA-334 C# Language Specificationpreviousnextprevious at this levelnext at this level 17 Classesprevious at this levelnext at this level 17.2 Class membersprevious at this levelnext at this level 17.2.6 Nested types Paragraph 11 A type declared within a class or struct is called a nested type. 2 A type that is declared within a compilation unit or namespace is called a non-nested type. [Example: In the following example:
using System;  
class A  
{  
   class B  
   {  
      static void F() {  
         Console.WriteLine("A.B.F");  
      }  
   }  
}  
class B is a nested type because it is declared within class A, and class A is a non-nested type because it is declared within a compilation unit. end example]
{ JSL }
Jagger Software Ltd
Company # 4070126
VAT # 762 5213 42
Valid HTML 4.01Valid CSS