Exemplo n.º 1
0
        internal HxlCompilerResults(IHxlInternalCompilerResults nativeCompilerResults)
        {
            if (nativeCompilerResults == null)
            {
                throw new ArgumentNullException("nativeCompilerResults");
            }

            _nativeCompilerResults = nativeCompilerResults;

            Assembly asm = null;

            try {
                asm = nativeCompilerResults.CompiledAssembly;
            } catch (FileNotFoundException) {
            }

            if (asm == null)
            {
                _compiledTemplates = HxlCompiledTemplateInfoCollection.Empty;
            }
            else
            {
                _compiledTemplates = new HxlCompiledTemplateInfoCollection(asm);
            }
        }
Exemplo n.º 2
0
 private HxlCompiledTemplateInfoCollection RequireMap()
 {
     if (_items == null)
     {
         _items = new HxlCompiledTemplateInfoCollection(assembly);
     }
     return(_items);
 }