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; } } }