Exemple #1
0
 public VlsState(VlsHost host)
 {
     if (VlScriptHeader.VlsCreateState(host.host, out this.state) == VlScriptHeader.VLS_ERR)
     {
         host.RaiseException();
     }
     else
     {
         this.host = host;
     }
 }
Exemple #2
0
 public VlsAssembly(VlsHost host, string fileName)
 {
     if (VlScriptHeader.VlsCreateAssemblyFromFile(host.host, fileName, out this.assembly) == VlScriptHeader.VLS_ERR)
     {
         host.RaiseException();
     }
     else
     {
         this.host           = host;
         this.BasicFunctions = new VlsBasicFunctionList(this);
     }
 }