Concept of Private class in C#
问题 Can private classes exist in C#, other than in Inner classes? 回答1: Simply NO. Nothing unless its in a nested Class Classes and structs that are not nested within other classes or structs can be either public or internal . A type declared as public is accessible by any other type. A type declared as internal is only accessible by types within the same assembly. Classes and structs are declared as internal by default unless the keyword public is added to the class definition. Class or struct