projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* CheckBox.cs: Do not change the status of a checkbox when there
[mono.git]
/
mcs
/
tests
/
gen-6.cs
1
class Stack<T>
2
{
3
int size;
4
T[] data;
5
6
public Stack ()
7
{
8
data = new T [200];
9
}
10
11
public void Push (T item)
12
{
13
data [size++] = item;
14
}
15
16
public T Pop ()
17
{
18
return data [--size];
19
}
20
21
public void Hello (T t)
22
{
23
System.Console.WriteLine ("Hello: {0}", t);
24
}
25
}
26
27
class Test
28
{
29
static void Main ()
30
{
31
}
32
}