Type Visibility Levels

Any Type defined in Oxygene can have one of three visibility levels that controls where the type is accessible from.

Unless marked differently with one of the keywords below, all types have assembly visibility – that is, they are accessible from within the same project but not exported from library projects for external access.

  • unit — only accessible from within the same file
  • assembly — only accessible from within this project
  • public — accessible from everywhere

Among others, the assembly and public visibility levels are also available for type members themselves.