AutoOpenAttribute Type
Indicates a construct is automatically opened when brought into scope through an assembly reference or then opening of the containing namespace or module.
When applied to an assembly, this attribute must be given a string argument, and this indicates a valid module or namespace in that assembly. Source code files compiled with a reference to this assembly are processed in an environment where the given path is automatically opened. When applied to a type or module within an assembly, then the attribute must not be given any arguments, and the type or module is implicitly opened when its enclosing namespace or module is opened.
Constructors
Constructor |
Description
|
Full Usage:
AutoOpenAttribute(path)
Parameters:
string
-
The namespace or module to be automatically opened when an assembly is referenced
or an enclosing module opened.
Returns: AutoOpenAttribute
AutoOpenAttribute
|
Creates an attribute used to mark a namespace or module path to be 'automatically opened' when an assembly is referenced
|
|
Creates an attribute used to mark a module as 'automatically opened' when the enclosing namespace is opened
|