Re: How does a nested class reference it's containing class.

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Mattias Sjögren (mattias.dont.want.spam_at_mvps.org)
Date: 03/02/04


Date: Tue, 02 Mar 2004 19:24:13 +0100


There's no automatic relation between a BigClass and a MiniClass
instance. You have to pass in a reference to the BigClass if you need
one.

   public MiniClass{
     public void MiniFunc(BigClass big){
       int intBigClassID = big.ID_BigClass;
     }
   }

Mattias

-- 
Mattias Sjögren [MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.