0

Using visual studio to create a windows form application. There are multiple projects contained in this solution, with each project having multiple folders. When i use the context menu in the solution explorer to add/create a new class inside of a folder, it set the access modifier to internal.

namespace Namespace.Name { internal class ClassName { } } 

Any ideas why this is the default in this case?

2
  • This is just Visual Studio being "explicit". If it wasn't there.. it would mean the same thing (as per the answer below). Commented May 16, 2014 at 14:58
  • stackoverflow.com/questions/824555/… Commented May 16, 2014 at 14:59

1 Answer 1

5

Because this is the default access modifier for a class, which is not nested. For further documenation on this, please have a look here.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.