CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2004
    Posts
    126

    Intrepreting the word "same assembly"

    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

  2. #2
    Join Date
    Jan 2002
    Location
    Scaro, UK
    Posts
    5,940

    Re: Intrepreting the word "same assembly"

    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.
    www.pinvoker.com - PInvoker - the .NET PInvoke Interface Exporter for C++ Dlls.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured