User Tools

Site Tools


namespace_assembly_reference

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
namespace_assembly_reference [2018/09/24 20:26]
wolfgangriedmann
namespace_assembly_reference [2018/09/25 08:01] (current)
wolfgangriedmann
Line 29: Line 29:
   * have the mscorlib.dll in your references   * have the mscorlib.dll in your references
   * either have a using System.IO at the begin of your source or use the full referenced class name    * either have a using System.IO at the begin of your source or use the full referenced class name 
 +
 +To make it easier for people migrating from VO the development team has added a special mechanism to the X# compiler (this was available also in the Vulcan compiler): an assembly can add an attribute that lists namespaces that should be treated as "​implicit"​. And there is a compiler option that intructs the compiler to automatically add these "​implicit namespaces"​ as using statements to your code.
 +The XPorter automatically enables this option, so you can still use classes like DbServer and DataWindow without including using statements for these classes.
 +Vn2Ado also uses this mechanism. If you enable this option then you can use the Ado.. classes without extra using statement.
  
namespace_assembly_reference.txt ยท Last modified: 2018/09/25 08:01 by wolfgangriedmann