What are the access allowed for compilation
units(namespace),class and structs and what are its default
access?

Answer Posted / basavaraju.c

Namespace : It is not possible to use any access specifiers
like private, public etc with a namespace declarations. The
namespaces in C# are implicitly have public access and this is
not modifiable.

For Class and Structs we can only use internal and public.
(default access is Internal)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to reverse each word in a string using c#?

804


What is method in c#?

664


What is dependency injection in simple words?

721


Can you call from an inherited constructor to a specific base constructor if both base class and an inheriting class has a number of overloaded constructors?

749


Which is faster iqueryable or ienumerable?

775


Explain circular reference in c#?

761


Why we use delegates in c#?

703


How we convert private assembly into public assembly?

733


What is the difference between asp net and c#?

704


What is the difference between ref & out parameters in c#?

668


What do u mean by delegation?

735


What is the difference between ienumerable and icollection?

718


What is tpl in c#?

683


Write a program in C# for checking a given number is PRIME or not.

877


What is option parameter in C#?

750