Access specifier
Can you specify an access specifier for an enumeration in c# language?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Oct 31, 2011, 5:56 AM
For 'top level' enums, this can be either public or internal.
For enums embedded in other types, it can be public, internal, protected internal, protected or private.
If you don't specify an access modifier, the default in all cases is internal.
Pravin MorePosted Oct 31, 2011, 1:02 AM
no...Enumeration members are always public, and no access modifiers can be applied.
Thanks,
Pravin.