source:
trunk/Demos/Generics/Generics.dpr
Last change on this file was 50, checked in by , 13 years ago | |
---|---|
File size: 252 bytes |
Line | |
---|---|
1 | program Generics; |
2 | |
3 | uses |
4 | System, List; |
5 | |
6 | type |
7 | TListInteger = TList<Integer>; |
8 | |
9 | var |
10 | List: TList<Integer>; |
11 | I: Integer; |
12 | begin |
13 | try |
14 | List := TList<Integer>.Create; |
15 | List.Add(100); |
16 | finally |
17 | List.Free; |
18 | end; |
19 | end. |
Note:
See TracBrowser
for help on using the repository browser.