Re: Exposing internal members of an assembly
- From: Jon Skeet [C# MVP] <skeet@xxxxxxxxx>
- Date: Thu, 20 Apr 2006 07:10:34 +0100
<mmkhajah@xxxxxxxxx> wrote:
I am trying to have a set of base classes and interfaces of an
application framework in their own assembly. That way, concrete
implementations of the API will reference that assembly and implement
the abstract classes and interfaces.
The problem is that some parts of the API are "internal" in the sense
that they are internal to the implementation. If I declare these parts
as internal in the API, the implementations will not be able to access
them.
The reason behind using "internal" members is to eliminate the need for
the proxy design pattern so I can pass objects between the implemation
and the GUI directly whilst ensuring that the appropriate access levels
are maintained.
Any thoughts?
So you want the derived classes to have access to the members in the
base classes, but you don't want other classes to have access to those
members? If so, you just need protected access.
--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
.
- Follow-Ups:
- Re: Exposing internal members of an assembly
- From: mmkhajah
- Re: Exposing internal members of an assembly
- References:
- Exposing internal members of an assembly
- From: mmkhajah
- Exposing internal members of an assembly
- Prev by Date: SQL Editor
- Next by Date: Re: Is it possible to use C# 2.0 in VS.NET 2003?
- Previous by thread: Re: Exposing internal members of an assembly
- Next by thread: Re: Exposing internal members of an assembly
- Index(es):
Relevant Pages
|