36 lines
634 B
C#
36 lines
634 B
C#
// Copyright (c) Ivan Bondarev, Stanislav Mikhalkovich (for details please see \doc\copyright.txt)
|
|
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
|
using System;
|
|
using System.Collections;
|
|
|
|
namespace SymbolTable
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public class AreaArrayTable
|
|
{
|
|
private ArrayList data;
|
|
|
|
public AreaArrayTable(int StartSize)
|
|
{
|
|
data=new ArrayList(StartSize);
|
|
}
|
|
public int Add(int[] table)
|
|
{
|
|
return data.Add(table);
|
|
}
|
|
public int[] this [int index]
|
|
{
|
|
get
|
|
{
|
|
return (data[index] as int[]);
|
|
}
|
|
set
|
|
{
|
|
data[index]=value;
|
|
}
|
|
}
|
|
}
|
|
}
|