473,395 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Accessibility Modifers for classes

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
Nov 15 '05 #1
7 1491
The C# modify is "internal protected". This is different then "protected
internal". Order of modifiers matters.
"ia***********@yahoo.com" <an*******@discussions.microsoft.com> wrote in
message news:29**********************************@microsof t.com...
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

Nov 15 '05 #2
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.

--
--Grant
This posting is provided "AS IS" with no warranties, and confers no rights.
"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:Oh**************@TK2MSFTNGP09.phx.gbl...
The C# modify is "internal protected". This is different then "protected
internal". Order of modifiers matters.
"ia***********@yahoo.com" <an*******@discussions.microsoft.com> wrote in
message news:29**********************************@microsof t.com...
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


Nov 15 '05 #3
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

--
Chris Taylor
http://dotnetjunkies.com/WebLog/chris.taylor/
"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:Oh**************@TK2MSFTNGP09.phx.gbl...
The C# modify is "internal protected". This is different then "protected
internal". Order of modifiers matters.
"ia***********@yahoo.com" <an*******@discussions.microsoft.com> wrote in
message news:29**********************************@microsof t.com...
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


Nov 15 '05 #4
I thought they were different. Sorry.

"Grant Richins [MS]" <gr*****@online.microsoft.com> wrote in message
news:uI**************@TK2MSFTNGP10.phx.gbl...
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.

--
--Grant
This posting is provided "AS IS" with no warranties, and confers no rights.

"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:Oh**************@TK2MSFTNGP09.phx.gbl...
The C# modify is "internal protected". This is different then "protected internal". Order of modifiers matters.
"ia***********@yahoo.com" <an*******@discussions.microsoft.com> wrote in
message news:29**********************************@microsof t.com...
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



Nov 15 '05 #5
Hi ian,

C# does not support family and assembly access modifiers.

--
B\rgds
100

"ia***********@yahoo.com" <an*******@discussions.microsoft.com> wrote in
message news:29**********************************@microsof t.com...
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

Nov 15 '05 #6
Thanks all! That was helpful.
Nov 15 '05 #7
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.

"ia***********@yahoo.com" <an*******@discussions.microsoft.com> wrote in
message news:29**********************************@microsof t.com...
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

Nov 15 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: JAMESICUS | last post by:
Refer to ..... http://news.com.com/2100-1032-5063444.html James Pickering Pickering Pages http://www.jp29.org/
1
by: Hans De Schrijver | last post by:
I'm pretty new to C# development, so here's a newby question regarding accessibility: Scenario: class1 contains some basic properies and methods class2 inherits from class1 and adds some...
4
by: waltborders | last post by:
Hi, Because the blind are unable to use a mouse, keyboard navigation is key. A major difficulty is that not all windows forms controls are keyboard 'tab-able' or 'arrow-able' or have "tab...
6
by: stephan | last post by:
How to solve the problem of the accessibility of members among files( .h or ..cpp ) in __gc classes? Ex : // AA.h file public __gc class AA : UserControl
3
by: Edward Diener | last post by:
According to the CLS specification, the accessibility of the methods for adding, removing, and raising an event must be identical. There appear to be a few problems with this: 1) According to...
5
by: Andy Fish | last post by:
Consider the following code fragment public class Wrapper { protected enum E { IN, OUT }; public class C { protected void foo(E e) { } } } I want the class C to be accessible from outside...
8
by: cms-hispano.org | last post by:
i'm building a site about extreme accessibility, i.e.: how (and why) to get sites to become fully accessible, *beyond* W3C Web Accessibility Initiative guidelines. it's far from being completed (i...
0
by: mariano774 | last post by:
Hello, I'm building a POC architecture framework, in which I have my business objects (BOs) made of internal classes and my transfer objects (TOs) made of public classes. what I'd like to do is...
9
by: dylan.miller | last post by:
I'm having trouble understanding the internal access modifier. There are many classes in my assembly that should not be accessible outside of the assembly. I've used the internal access modifier...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.