Re: How does a nested class reference it's containing class.
From: Mattias Sjögren (mattias.dont.want.spam_at_mvps.org)
Date: 03/02/04
- Next message: Brian Bischof: "Re: C Sharp Book... Any good?"
- Previous message: Tristan: "Writing pens to file"
- In reply to: Mortos: "How does a nested class reference it's containing class."
- Next in thread: Ignacio Machin \( .NET/ C# MVP \): "Re: How does a nested class reference it's containing class."
- Messages sorted by: [ date ] [ thread ]
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.
- Next message: Brian Bischof: "Re: C Sharp Book... Any good?"
- Previous message: Tristan: "Writing pens to file"
- In reply to: Mortos: "How does a nested class reference it's containing class."
- Next in thread: Ignacio Machin \( .NET/ C# MVP \): "Re: How does a nested class reference it's containing class."
- Messages sorted by: [ date ] [ thread ]