22
Reply

what is the default access specifier within the namespaces in c#?

masthan p

masthan p

Dec 02, 2012
6.7k
1

    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.

    Jaya Kukudkar
    February 26, 2013
    1

    Jaya Kukudkar
    February 26, 2013
    1

    no namespace is required for access specifier

    Rishi Malvi
    March 27, 2014
    0

    internal for other types refer following linkhttp://sandeepmhatre.blogspot.com/2013/04/access-specifier-in-c.html

    Sandeep Mhatre
    April 23, 2013
    0

    internal for other types refer following linkhttp://sandeepmhatre.blogspot.com/2013/04/access-specifier-in-c.html

    Sandeep Mhatre
    April 23, 2013
    0

    internal for other types refer following linkhttp://sandeepmhatre.blogspot.com/2013/04/access-specifier-in-c.html

    Sandeep Mhatre
    April 23, 2013
    0

    internal for other types refer following linkhttp://sandeepmhatre.blogspot.com/2013/04/access-specifier-in-c.html

    Sandeep Mhatre
    April 23, 2013
    0

    internal for other types refer following linkhttp://sandeepmhatre.blogspot.com/2013/04/access-specifier-in-c.html

    Sandeep Mhatre
    April 23, 2013
    0

    Namespace will not have access modifier.

    Raghavendra U
    March 20, 2013
    0

    private

    keerthi rakasi
    February 28, 2013
    0

    private

    keerthi rakasi
    February 28, 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.

    Jaya Kukudkar
    February 26, 2013
    0

    internal

    Lalit Rana
    February 11, 2013
    0

    Private

    Koteeswaran Lakshmikanth
    January 30, 2013
    0

    Private

    Giri Birnurkar
    January 24, 2013
    0

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

    Atulya Panda
    January 11, 2013
    0

    public

    Anil Kumar
    January 05, 2013
    0

    internal

    raz real
    December 27, 2012
    0

    Private

    Santosh PavanKumar
    December 19, 2012
    0

    Internal

    Sunil Kumar
    December 18, 2012
    0

    Public

    Rajesh Gonugunta
    December 17, 2012
    0

    internal

    masthan p
    December 02, 2012
    0