static ILFile() { ILBlankElement.initialize(); ILCommentElement.initialize(); ILAssemblyElement.initialize(); ILCustomElement.initialize(); ILModuleElement.initialize(); ILPublickeytokenElement.initialize(); ILPublickeyElement.initialize(); ILNamespaceElement.initialize(); ILClassElement.initialize(); ILFieldElement.initialize(); ILPropertyElement.initialize(); ILGetElement.initialize(); ILSetElement.initialize(); ILMethodElement.initialize(); ILTryElement.initialize(); ILCatchElement.initialize(); ILStatementElement.initialize(); ILLineElement.initialize(); ILLocalsElement.initialize(); ILMaxstackElement.initialize(); ILUnknownElement.initialize(); }
removeAssemblyReference(string assemblyName) { ILAssemblyElement.Iterator assIter = getAssemblyIterator(); for (ILAssemblyElement assElem = assIter.getFirst(); null != assElem; assElem = assIter.getNext()) { if (assElem.isExtern() && assElem.getName() == assemblyName) { assElem.remove(); } } base.removeAssemblyReference(assemblyName); }
parse(string filename) { m_filename = filename; m_streamIn = new StreamReader(filename, Encoding.UTF8); parseSubElements(this); m_streamIn.Close(); m_streamIn = null; ILAssemblyElement.Iterator assIter = getAssemblyIterator(); for (ILAssemblyElement assElem = assIter.getNext(); null != assElem; assElem = assIter.getNext()) { if (!assElem.isExtern()) { setAssemblyName(assElem.getName()); break; } } }
getAssemblyIterator() { return(ILAssemblyElement.getIterator(this)); }