Exemplo n.º 1
0
        private void ReadEntry(TextReader reader)
        {
            while (true)
            {
                string line = ReadNextLine(reader);
                if (line == null)
                    break;
                Entry newEntry = new Entry();
                newEntry.name = line;

                line = ReadNextLine(reader);
                newEntry.bitIndex = GetValue(line);

                line = ReadNextLine(reader);
                newEntry.bitLength = GetValue(line);

                line = ReadNextLine(reader);
                newEntry.SetTypeParameters(line);
                //Do type

                line = ReadNextLine(reader);
                if (line != "NULL")
                {
                    //My version will ignore the first line ;)
                    newEntry.entries = GetEntries(line, version == ModuleVersion.NLight);
                }
            }
        }