Click to See Complete Forum and Search --> : Intrepreting the word "same assembly"


vikrampschauhan
January 29th, 2005, 02:32 PM
internal members of a class can be accessed only by objects declared in the same assembly.

What do we mean when we say "same assembly"(I dont think that it has any reference to the assembly code, or the IL, generated)?


Thanks
Vikram

darwen
January 29th, 2005, 05:26 PM
Inside of the same assembly means what it says.

An assembly is a .NET file : whether it be an executable or a dll.

If you have a dll assembly then having the 'internal' keyword on a class or member function/property will mean that it is only available from classes and functionality defined in that dll.

Any other assembly (whether it be an exe or a dll) will not have access to that class or member.

Darwen.