Home   Cover Cover Cover Cover
 

Visibility of names

The following declarations are visible in a method:

  • imported namespaces
  • types declared in the current namespace
  • public types of imported namespaces
  • all members (i.e. fields, methods, properties, etc.) of the current class (also the private ones)
  • local variables and parameters of the current method (only after the point where they are declared)

The following declarations are visible in a class:

  • imported namespaces
  • types declared in the current namespace
  • public types of imported namespaces
  • all members (i.e. fields, methods, properties, etc.) of the current class (also the private ones)