G
Guest
Hello,
I´m relatively new in programming with C#.
I want to design a class with can only be used in the same namespace.
So I declared this class as protected, but the compiler gives me the
following error:
Error 1 Namespace elements cannot be explicitly declared as private,
protected, or protected internal [...]
How can I reach my aim?
When do you use "protected" if not to declare a class only for
the use in the same namespace?
Regards,
Martin
I´m relatively new in programming with C#.
I want to design a class with can only be used in the same namespace.
So I declared this class as protected, but the compiler gives me the
following error:
Error 1 Namespace elements cannot be explicitly declared as private,
protected, or protected internal [...]
How can I reach my aim?
When do you use "protected" if not to declare a class only for
the use in the same namespace?
Regards,
Martin