Re: Encapsulation
- From: Jon Harrop <jon@xxxxxxxxxxxxxxxxx>
- Date: Sat, 24 May 2008 23:34:23 +0100
Arne Vajhøj wrote:
Jon Harrop wrote:
Arne Vajhøj wrote:
Jon Harrop wrote:
I have two separate classes and would like the members of one class toThe typical C# solution would be to put the classes in same
have access to the private members of another class. What is the
idiomatic C# solution to this?
I believe C++ would use "friends".
assembly and use "internal" accessibility.
That only restricts accessibility to the million lines of other code that
happens to be in the same assembly, which is such a weak constraint as to
be of no practical use.
I don't think millions of lines of C# code in one assembly
is good at all.
Whether I have one line or a million lines, the idea of restricting
accessibility to a single-level (the assembly) does not scale. Moreover, if
I reduce the size of my assemblies then I increase the probability
that "internal" cannot work because access is required from another
assembly.
--
Dr Jon D Harrop, Flying Frog Consultancy
http://www.ffconsultancy.com/products/?u
.
- Follow-Ups:
- Re: Encapsulation
- From: Peter Duniho
- Re: Encapsulation
- From: Arne Vajhøj
- Re: Encapsulation
- References:
- Encapsulation
- From: Jon Harrop
- Re: Encapsulation
- From: Arne Vajhøj
- Re: Encapsulation
- From: Jon Harrop
- Re: Encapsulation
- From: Arne Vajhøj
- Encapsulation
- Prev by Date: Re: How to count value in a ArrayList
- Next by Date: Re: Encapsulation
- Previous by thread: Re: Encapsulation
- Next by thread: Re: Encapsulation
- Index(es):
Relevant Pages
|
Loading