Is it possible to restrict the scope of a field/method of a class to the classes in the same namespace?
Submitted by: AdministratorThere is no way to restrict to a namespace. Namespaces are never units of protection. But if you're using assemblies, you can use the 'internal' access modifier to restrict access to only within the assembly.
Submitted by: Administrator
Submitted by: Administrator
Read Online C# (Sharp) Programming Language Job Interview Questions And Answers
Top C# (Sharp) Programming Language Questions
☺ | What is a delegate in C#? |
☺ | What is the difference between const and static read-only? |
☺ | Why would you use untrusted verification? |
☺ | Which control cannot be placed in MDI? |
☺ | What does the parameter Initial Catalog define inside Connection String? |
Top Dot Net Technologies Categories
☺ | MSF Interview Questions. |
☺ | .Net Architecture Interview Questions. |
☺ | ASP.Net MVC Interview Questions. |
☺ | Entity Framework Interview Questions. |
☺ | C# (Sharp) Programming Language Interview Questions. |