Accessibility Modifers for classes

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all

i'm reading up on the internals of the CLR and I noticed that it is possible to make a class have the famandassem accessibility modifier. I've looked at the C# language reference and I don't think that C# can do this. Note that this is not protected internal, which is mapped to famorassem in CIL

Can anyone confirm or deny this

Thank
IM
 
The C# modify is "internal protected". This is different then "protected
internal". Order of modifiers matters.


Hi all,

i'm reading up on the internals of the CLR and I noticed that it is
possible to make a class have the famandassem accessibility modifier. I've
looked at the C# language reference and I don't think that C# can do this.
Note that this is not protected internal, which is mapped to famorassem in
CIL.
 
Nope, sorry. There is no way to get "famandassem". And in response to
Peter's post "internal protected" and "protected internal" have the *EXACT*
same semantics.
 
Hi,

In C# order does not matter, both 'protected internal' and 'internal
protected' compile to famorassem, famandassem is not exposed through C#.

Hope this helps
 
I thought they were different. Sorry.

Grant Richins said:
Nope, sorry. There is no way to get "famandassem". And in response to
Peter's post "internal protected" and "protected internal" have the *EXACT*
same semantics.
 
Hi ian,

C# does not support family and assembly access modifiers.

--
B\rgds
100

Hi all,

i'm reading up on the internals of the CLR and I noticed that it is
possible to make a class have the famandassem accessibility modifier. I've
looked at the C# language reference and I don't think that C# can do this.
Note that this is not protected internal, which is mapped to famorassem in
CIL.
 
Out of raw curiosity, has anyone come up with a accessibility modifier
keyword for famandassem that would actually work in C#? I've been thinking
about this for a while now and I can't come up with anything that fits.

Hi all,

i'm reading up on the internals of the CLR and I noticed that it is
possible to make a class have the famandassem accessibility modifier. I've
looked at the C# language reference and I don't think that C# can do this.
Note that this is not protected internal, which is mapped to famorassem in
CIL.
 
Back
Top