Example #1
0
        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();
        }
Example #2
0
        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);
        }
Example #3
0
        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;
                }
            }
        }
Example #4
0
 getAssemblyIterator()
 {
     return(ILAssemblyElement.getIterator(this));
 }