Exemple #1
0
        public void Read(StreamReader reader)
        {
            string nextLine = DataNode.GetNextLine(reader);
            int    num      = DataNode.CalculateTabs(nextLine);

            this.Read(reader, nextLine, ref num);
        }
Exemple #2
0
		private string Read(StreamReader reader, string line, ref int offset)
		{
			if (line != null)
			{
				int num = offset;
				this.Set(line, num);
				line = DataNode.GetNextLine(reader);
				offset = DataNode.CalculateTabs(line);
				while (line != null)
				{
					if (offset != num + 1)
					{
						break;
					}
					line = this.AddChild().Read(reader, line, ref offset);
				}
			}
			return line;
		}