masthan p
what is the default access specifier within the namespaces in c#?
Posted by masthan p in C# Language on Dec 02, 2012
  • 0
  • 22
  • 4028
Do you know the answer for this question? Post it below.
Guest
Posted by Rishi Malvi on Mar 27, 2014
  • 0

no namespace is required for access specifier

Posted by Sandeep Mhatre on Apr 23, 2013
  • 0

internal

for other types refer following link



http://sandeepmhatre.blogspot.com/2013/04/access-specifier-in-c.html

Posted by Sandeep Mhatre on Apr 23, 2013
  • 0

internal

for other types refer following link



http://sandeepmhatre.blogspot.com/2013/04/access-specifier-in-c.html

Posted by Sandeep Mhatre on Apr 23, 2013
  • 0

internal

for other types refer following link



http://sandeepmhatre.blogspot.com/2013/04/access-specifier-in-c.html

Posted by Sandeep Mhatre on Apr 23, 2013
  • 0

internal

for other types refer following link



http://sandeepmhatre.blogspot.com/2013/04/access-specifier-in-c.html

Posted by Sandeep Mhatre on Apr 23, 2013
  • 0

internal

for other types refer following link



http://sandeepmhatre.blogspot.com/2013/04/access-specifier-in-c.html

Posted by Raghavendra u on Mar 20, 2013
  • 0

Namespace will not have access modifier.

Posted by keerthi rakasi on Feb 28, 2013
  • 0

private

Posted by keerthi rakasi on Feb 28, 2013
  • 0

private

Posted by Jaya Kukudkar on Feb 26, 2013
  • 0

Internal if it is directly declared inside namespace.

Private if it is nested.

Here's some explanation:

Classes and structs that are declared directly within a namespace (in other words, that are not nested within other classes or structs) can be either public or internal. Internal is the default if no access modifier is specified.


Struct members, including nested classes and structs, can be declared as public, internal, or private. Class members, including nested classes and structs, can be public, protected internal, protected, internal, or private. The access level for class members and struct members, including nested classes and structs, is private by default. Private nested types are not accessible from outside the containing type.

Posted by Jaya Kukudkar on Feb 26, 2013
  • 0

Internal if it is directly declared inside namespace.

Private if it is nested.

Here's some explanation:

Classes and structs that are declared directly within a namespace (in other words, that are not nested within other classes or structs) can be either public or internal. Internal is the default if no access modifier is specified.


Struct members, including nested classes and structs, can be declared as public, internal, or private. Class members, including nested classes and structs, can be public, protected internal, protected, internal, or private. The access level for class members and struct members, including nested classes and structs, is private by default. Private nested types are not accessible from outside the containing type.

Posted by Jaya Kukudkar on Feb 26, 2013
  • 0



Posted by Lalit Rana on Feb 11, 2013
  • 0

internal

Posted by Koteeswaran Lakshmikanth on Jan 30, 2013
  • 0

Private

Posted by Giri Birnurkar on Jan 24, 2013
  • 0

Private

Posted by Atulya Panda on Jan 11, 2013
  • 0

In c#.net by default access specifier is internal.......

Posted by Anil Kumar on Jan 05, 2013
  • 0

public

Posted by raz real on Dec 27, 2012
  • 0

internal

Posted by Santosh PavanKumar on Dec 19, 2012
  • 0

Private

Posted by Sunil Kumar on Dec 18, 2012
  • 0

Internal

Posted by Rajesh Gonugunta on Dec 17, 2012
  • 0

Public

Posted by masthan p on Dec 02, 2012
  • 0

internal


PRIVACY POLICY | TERMS & CONDITIONS | SITEMAP | CONTACT US | ABOUT US | REPORT ABUSE
2014© C# Corner. All contents are copyright of their authors.