Click here to Skip to main content
15,886,724 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
what happens putting a private access specifier in front of class in C#?
Posted
Updated 10-Dec-12 2:20am
v2

there is no private class in C# but you can use keyword internal, making the class visible only in the assembly it constains(dll).

but you can make a class private if it is declared inside another class (nested class)
 
Share this answer
 
it won't allow us to send parameters to next page
 
Share this answer
 
Hi as per My knowledge C# doesn't allow to create private class.

if u need much more info on this you can refer
http://stackoverflow.com/questions/3574404/can-you-create-private-classes-in-c[^]
 
Share this answer
 
"A private class/constructor means that a class cannot be created anywhere but inside its own methods"

--SJ
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900