Samir Bhogayta
Is it possible to restrict the scope of a field/method of a class to the classes in the same namespace?
By Samir Bhogayta in C# on Jun 25 2016
  • Samir Bhogayta
    Jun, 2016 25

    There 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.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS