Assembly private type C++/CLI

  • Thread starter Thread starter Boni
  • Start date Start date
B

Boni

Dear all,
Following situation
class A{

static Arraylist B;
}
void func(){
A::B=...
}

I would like to allow to use B inside of this assembly but not outside.
If I declare B as private I am not able to use it inside of func(), if
public then it also could be used outside.
Is it possible to have assembly private types? If yes, what keyword should I
use.
Thanks,
 
Boni said:
Following situation
class A{

static Arraylist B;
}
void func(){
A::B=...
}

I would like to allow to use B inside of this assembly but not outside.
If I declare B as private I am not able to use it inside of func(), if
public then it also could be used outside.
Is it possible to have assembly private types? If yes, what keyword should
I use.
In the initial design you could add two access specifiers. The more
restrictive would apply for internal references the other own for
external.

Hence,
public private:

which has been replaced (it might actually still be supported in
VC8) internal

public ref class R { internal: int i; };

-hg
 
Thanks
Holger Grund said:
In the initial design you could add two access specifiers. The more
restrictive would apply for internal references the other own for
external.

Hence,
public private:

which has been replaced (it might actually still be supported in
VC8) internal

public ref class R { internal: int i; };

-hg
 
Back
Top