|
/*
SqlBuilder - an intelligent database tool
This file is part of SqlBuilder.
www.netcult.ch/elmue
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You find the GNU General Public License in the subfolder GNU
if not, write to the Free Software Foundation,
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
*/
using System;
using System.IO;
using System.Xml;
using System.Text;
using System.Drawing;
using System.Collections;
using System.Globalization;
using System.Windows.Forms;
using System.Security.Cryptography;
namespace SqlBuilder
{
/// <summary>
/// Stupid .NET Stack class does not allow direct access on the elements on the stack
/// </summary>
public class StackEx : ArrayList
{
public void Push(object o_Value)
{
Add(o_Value);
}
public object Pop()
{
if (this.Count == 0)
return null;
object o_Value = this[Count-1];
this.RemoveAt(Count-1);
return o_Value;
}
public object Peek()
{
if (this.Count == 0)
return null;
return this[Count-1];
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.